feat: 对接工作流分类模块

This commit is contained in:
AN
2025-05-19 23:51:32 +08:00
parent 7aa489a283
commit 25790d4b0f
13 changed files with 532 additions and 2 deletions

44
src/typings/api/workflow.api.d.ts vendored Normal file
View File

@ -0,0 +1,44 @@
/**
* Namespace Api
*
* All backend api type
*/
declare namespace Api {
/**
* namespace Workflow
*
* backend api module: "Workflow"
*/
namespace Workflow {
/** 工作流分类 */
type WorkflowCategory = Common.CommonRecord<{
/** 主键 */
categoryId: CommonType.IdType;
/** 租户编号 */
tenantId: CommonType.IdType;
/** 分类名称 */
categoryName: string;
/** 父级ID */
parentId: CommonType.IdType;
/** 祖级列表 */
ancestors: string;
/** 排序号 */
orderNum: number;
/** 删除标志 */
delFlag: number;
}>;
/** 工作流分类搜索参数 */
type WorkflowCategorySearchParams = CommonType.RecordNullable<
Pick<WorkflowCategory, 'categoryName'> & Api.Common.CommonSearchParams
>;
/** 工作流分类操作参数 */
type WorkflowCategoryOperateParams = CommonType.RecordNullable<
Pick<WorkflowCategory, 'categoryId' | 'categoryName' | 'parentId' | 'orderNum'>
>;
/** 工作流分类列表 */
type WorkflowCategoryList = WorkflowCategory[];
}
}

View File

@ -53,6 +53,8 @@ declare module "@elegant-router/types" {
"tool": "/tool";
"tool_gen": "/tool/gen";
"user-center": "/user-center";
"workflow": "/workflow";
"workflow_category": "/workflow/category";
};
/**
@ -100,6 +102,7 @@ declare module "@elegant-router/types" {
| "system"
| "tool"
| "user-center"
| "workflow"
>;
/**
@ -145,6 +148,7 @@ declare module "@elegant-router/types" {
| "system_tenant"
| "system_user"
| "tool_gen"
| "workflow_category"
>;
/**