Initial commit

This commit is contained in:
Dev
2026-09-17 16:25:31 +08:00
commit 382a3069b9
1268 changed files with 266342 additions and 0 deletions
@@ -0,0 +1,20 @@
import { config } from '../../config/index';
/** 获取活动列表 */
function mockFetchActivityList(pageIndex = 1, pageSize = 20) {
const { delay } = require('../_utils/delay');
const { getActivityList } = require('../../model/activities');
return delay().then(() => getActivityList(pageIndex, pageSize));
}
/** 获取活动列表 */
export function fetchActivityList(pageIndex = 1, pageSize = 20) {
if (config.useMock) {
return mockFetchActivityList(pageIndex, pageSize);
}
return new Promise((resolve) => {
resolve('real api');
});
}