mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-11 08:41:09 +08:00
feat: 流程表达式 & 菜单图标
This commit is contained in:
25
apps/web-antd/src/api/workflow/spel/index.tsx
Normal file
25
apps/web-antd/src/api/workflow/spel/index.tsx
Normal 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}`);
|
||||
}
|
||||
10
apps/web-antd/src/api/workflow/spel/model.d.ts
vendored
Normal file
10
apps/web-antd/src/api/workflow/spel/model.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
export interface Spel {
|
||||
id: number;
|
||||
componentName: string;
|
||||
methodName: string;
|
||||
methodParams: string;
|
||||
viewSpel: string;
|
||||
status: string;
|
||||
remark: string;
|
||||
createTime: string;
|
||||
}
|
||||
Reference in New Issue
Block a user