mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat: 对接工作流分类模块
This commit is contained in:
44
src/typings/api/workflow.api.d.ts
vendored
Normal file
44
src/typings/api/workflow.api.d.ts
vendored
Normal 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[];
|
||||
}
|
||||
}
|
4
src/typings/elegant-router.d.ts
vendored
4
src/typings/elegant-router.d.ts
vendored
@ -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"
|
||||
>;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user