feat: 完成全部接口替换为新后端接口
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { apiRequest } from './api-request';
|
||||
import type { ApiWorksheet } from './content-api';
|
||||
/** 保留微信预拉取,动态兜底与后台刷新改由新后端提供。 */
|
||||
export function fetchPageConfig() {
|
||||
return apiRequest<PageConfigData>('/page-config', { auth: 'none' });
|
||||
}
|
||||
export function fetchAgeRecommendations(ageBand: string) {
|
||||
return apiRequest<{ ageBand: string; items: ApiWorksheet[] }>(
|
||||
'/recommendations/age',
|
||||
{ auth: 'none', data: { ageBand } },
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user