chore: 我发起的

This commit is contained in:
dap
2024-12-16 15:19:15 +08:00
parent 75b766eeba
commit 1c9ea51780
4 changed files with 183 additions and 13 deletions

View File

@@ -1,6 +1,7 @@
import type { TaskInfo } from '../task/model';
import type { FlowInfoResponse } from './model';
import type { ID, IDS, PageQuery } from '#/api/common';
import type { ID, IDS, PageQuery, PageResult } from '#/api/common';
import { requestClient } from '#/api/request';
@@ -67,10 +68,13 @@ export function workflowInstanceActive(instanceId: ID, active: boolean) {
/**
* 获取当前登录人发起的流程实例
* @param params
* @returns
* @returns PageResult<Flow>
*/
export function pageByCurrent(params?: PageQuery) {
return requestClient.get('/workflow/instance/current', { params });
return requestClient.get<PageResult<TaskInfo>>(
'/workflow/instance/pageByCurrent',
{ params },
);
}
/**