定时任务修正

This commit is contained in:
2025-11-17 15:16:11 +08:00
parent 4b167058b6
commit 6e9057f6ee
16 changed files with 444 additions and 496 deletions

View File

@@ -39,6 +39,20 @@ export const resourceApi = {
return response.data;
},
/**
* 获取资源分页列表(按浏览次数排序,包含推荐信息)
* @param filter 筛选条件
* @param pageParam 分页参数
* @returns Promise<ResultDomain<ResourceVO>>
*/
async getResourcePageOrderByViewCount(pageParam: PageParam, filter?: ResourceSearchParams): Promise<ResultDomain<ResourceVO>> {
const response = await api.post<ResourceVO>('/news/resources/page/view-count', {
pageParam,
filter,
});
return response.data;
},
/**
* 根据ID获取资源详情
* @param resourceID 资源ID