From 28ca9a9bf6f86e63eaa904023e2d98123c301d39 Mon Sep 17 00:00:00 2001 From: zangchenhao Date: Mon, 7 Jul 2025 17:07:00 +0800 Subject: [PATCH] =?UTF-8?q?feat(api/workflow):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=BD=93=E5=89=8D=E7=94=A8=E6=88=B7=E5=BE=85?= =?UTF-8?q?=E5=8A=9E=E5=92=8C=E6=8A=84=E9=80=81=E4=BB=BB=E5=8A=A1=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 countTaskWaitByCurrentUser 函数,用于查询当前用户的待办任务数量 - 新增 countTaskCopyByCurrentUser 函数,用于查询当前用户的抄送任务数量 --- src/api/workflow/task/index.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/api/workflow/task/index.ts b/src/api/workflow/task/index.ts index 6d515ec..d0e71d7 100644 --- a/src/api/workflow/task/index.ts +++ b/src/api/workflow/task/index.ts @@ -191,3 +191,25 @@ export const getNextNodeList = (data: any): any => { data: data }); }; + +/** + * 查询当前用户的待办任务数量 + * @returns {Promise} + */ +export const countTaskWaitByCurrentUser = (): AxiosPromise => { + return request({ + url: '/workflow/task/countTaskWaitByCurrentUser', + method: 'get' + }); +}; + +/** + * 查询当前用户的抄送任务数量 + * @returns {Promise} + */ +export const countTaskCopyByCurrentUser = (): AxiosPromise => { + return request({ + url: '/workflow/task/countTaskCopyByCurrentUser', + method: 'get' + }); +};