feat: 任务中心-重做任务

This commit is contained in:
rd
2025-07-18 17:47:16 +08:00
parent 4f10e5edf1
commit 7956594705
14 changed files with 47 additions and 77 deletions

View File

@ -21,7 +21,7 @@ export const getTask = (params = {}) => {
// 任务中心-批量删除
export const deleteBatchTasks = (params = {}) => {
return Http.delete('/v1/tasks', params);
return Http.delete('/v1/tasks', { data: params });
};
// 任务中心-删除
@ -42,4 +42,9 @@ export const getTaskUnread = () => {
// 任务中心-已读
export const patchTaskRead = (params = {}) => {
return Http.patch('/v1/tasks/read', params);
};
// 任务中心-重做任务
export const postRedoTask = (id: string) => {
return Http.post(`/v1/tasks/${id}/redo`);
};