feat: 流程表达式 & 菜单图标

This commit is contained in:
dap
2025-07-07 19:11:12 +08:00
parent 991904bd8c
commit 579105bbff
9 changed files with 437 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import type { Spel } from './model';
import type { ID, PageQuery, PageResult } from '#/api/common';
import { requestClient } from '#/api/request';
export function spelList(params?: PageQuery) {
return requestClient.get<PageResult<Spel>>('/workflow/spel/list', { params });
}
export function spelInfo(id: ID) {
return requestClient.get<Spel>(`/workflow/spel/${id}`);
}
export function spelAdd(data: Partial<Spel>) {
return requestClient.postWithMsg<Spel>('/workflow/spel', data);
}
export function spelUpdate(data: Partial<Spel>) {
return requestClient.putWithMsg<Spel>('/workflow/spel', data);
}
export function spelDelete(ids: ID[]) {
return requestClient.deleteWithMsg<Spel>(`/workflow/spel/${ids}`);
}

View File

@@ -0,0 +1,10 @@
export interface Spel {
id: number;
componentName: string;
methodName: string;
methodParams: string;
viewSpel: string;
status: string;
remark: string;
createTime: string;
}