feat(projects): 新增转办和终止功能

This commit is contained in:
AN
2025-06-25 23:19:32 +08:00
parent 89e7edb380
commit 80faf4b47c
5 changed files with 157 additions and 13 deletions

View File

@ -312,6 +312,23 @@ declare namespace Api {
/** 任务列表 */
type TaskList = Common.PaginatingQueryRecord<Task>;
/** 任务操作类型 */
type TaskOperateType = 'delegateTask' | 'transferTask' | 'addSignature' | 'reductionSignature' | 'stopTask';
/** 任务操作参数 */
type TaskOperateParams = CommonType.RecordNullable<{
taskId: CommonType.IdType;
userId?: CommonType.IdType;
userIds?: CommonType.IdType[];
message?: string;
}>;
/** 终止任务 */
type TerminateTaskOperateParams = CommonType.RecordNullable<{
taskId: CommonType.IdType;
comment?: string;
}>;
/** 协作方式 */
type CooperateType = 1 | 2 | 3 | 4 | 5 | 6 | 7;