feat: 轮询查询未读消息

This commit is contained in:
rd
2025-07-18 17:10:12 +08:00
parent 5063cd50f8
commit 4ef74174ca
6 changed files with 81 additions and 26 deletions

View File

@ -32,4 +32,14 @@ export const deleteTask = (id: string) => {
// 任务中心-查询任务状态
export const getTaskStatus = (id: string) => {
return Http.get(`/v1/tasks/${id}/status`);
};
// 任务中心-获取未读任务
export const getTaskUnread = () => {
return Http.get(`/v1/tasks/unread`);
};
// 任务中心-已读
export const patchTaskRead = (params = {}) => {
return Http.patch('/v1/tasks/read', params);
};