定时任务修正
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user