13 lines
501 B
TypeScript
13 lines
501 B
TypeScript
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 } },
|
|
);
|
|
}
|