个人学习记录
This commit is contained in:
@@ -92,4 +92,25 @@ export const learningRecordApi = {
|
||||
const response = await api.get<any>('/study/records/statistics/rankings');
|
||||
return response.data;
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取用户时间范围内的学习时长统计(用于图表)
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
* @returns Promise<ResultDomain<any>> 每天学习时长数据
|
||||
*/
|
||||
async getUserRecordRange(startTime: string, endTime: string): Promise<ResultDomain<any>> {
|
||||
const response = await api.get<any>(`/study/records/user/record/range?startTime=${startTime}&endTime=${endTime}`);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
/**
|
||||
* 分页查询用户学习记录详情
|
||||
* @param pageRequest 分页请求参数
|
||||
* @returns Promise<ResultDomain<any>> 分页记录数据
|
||||
*/
|
||||
async getUserRecordRangePage(pageRequest: any): Promise<ResultDomain<any>> {
|
||||
const response = await api.post<any>('/study/records/user/record/range', pageRequest);
|
||||
return response.data;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user