review:【ANTD】【BPM 工作流】ziye #https://gitee.com/yudaocode/yudao-ui-admin-vben/pulls/113
This commit is contained in:
@@ -3,7 +3,8 @@ import type { PageParam, PageResult } from '@vben/request';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace BpmCategoryApi {
|
||||
/** BPM 流程分类 VO */
|
||||
/** 流程分类 VO */
|
||||
// TODO @jason:不用 VO 后缀哈
|
||||
export interface CategoryVO {
|
||||
id: number;
|
||||
name: string;
|
||||
|
||||
@@ -2,9 +2,9 @@ import type { PageParam, PageResult } from '@vben/request';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/** 流程定义 */
|
||||
export namespace BpmProcessDefinitionApi {
|
||||
// 流程定义
|
||||
/** 流程定义 */
|
||||
// TODO @ziye:不用 VO 后缀哈
|
||||
export interface ProcessDefinitionVO {
|
||||
id: string;
|
||||
version: number;
|
||||
|
||||
@@ -3,7 +3,8 @@ import type { PageParam, PageResult } from '@vben/request';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace BpmFormApi {
|
||||
// 流程表单
|
||||
/** 流程表单 */
|
||||
// TODO @jason:不用 VO 后缀哈
|
||||
export interface FormVO {
|
||||
id?: number | undefined;
|
||||
name: string;
|
||||
@@ -23,6 +24,7 @@ export async function getFormPage(params: PageParam) {
|
||||
}
|
||||
|
||||
/** 获取表单详情 */
|
||||
// TODO @ziye:应该不会 string 的情况呢。
|
||||
export async function getFormDetail(id: number | string) {
|
||||
return requestClient.get<BpmFormApi.FormVO>(`/bpm/form/get?id=${id}`);
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ export namespace BpmModelApi {
|
||||
}
|
||||
|
||||
/** 流程定义 VO */
|
||||
// TODO @jason:不用 VO 后缀哈
|
||||
export interface ProcessDefinitionVO {
|
||||
id: string;
|
||||
key?: string;
|
||||
|
||||
@@ -3,6 +3,7 @@ import type { PageParam, PageResult } from '@vben/request';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace BpmOALeaveApi {
|
||||
// TODO @ziye:不用 VO 后缀
|
||||
export interface LeaveVO {
|
||||
id: number;
|
||||
status: number;
|
||||
|
||||
@@ -3,7 +3,8 @@ import type { PageParam, PageResult } from '@vben/request';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace BpmProcessExpressionApi {
|
||||
/** BPM 流程表达式 VO */
|
||||
// TODO @ziye:不用 VO 后缀
|
||||
/** 流程表达式 VO */
|
||||
export interface ProcessExpressionVO {
|
||||
id: number; // 编号
|
||||
name: string; // 表达式名字
|
||||
|
||||
@@ -8,6 +8,7 @@ import type { BpmCandidateStrategyEnum, BpmNodeTypeEnum } from '#/utils';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace BpmProcessInstanceApi {
|
||||
// TODO @芋艿:一些注释缺少或者不对;
|
||||
export type Task = {
|
||||
id: number;
|
||||
name: string;
|
||||
@@ -42,7 +43,7 @@ export namespace BpmProcessInstanceApi {
|
||||
tasks: ApprovalTaskInfo[];
|
||||
};
|
||||
|
||||
// 流程实例
|
||||
/** 流程实例 */
|
||||
export type ProcessInstanceVO = {
|
||||
businessKey: string;
|
||||
category: string;
|
||||
|
||||
@@ -3,6 +3,7 @@ import type { PageParam, PageResult } from '@vben/request';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace BpmProcessListenerApi {
|
||||
// TODO @ziye:不用 VO 后缀
|
||||
/** BPM 流程监听器 VO */
|
||||
export interface ProcessListenerVO {
|
||||
id: number; // 编号
|
||||
|
||||
@@ -5,6 +5,7 @@ import type { BpmProcessInstanceApi } from '../processInstance';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace BpmTaskApi {
|
||||
// TODO @ziye:不用 VO 后缀;注释使用 /** */ 风格;
|
||||
/** BPM 流程监听器 VO */
|
||||
export interface TaskVO {
|
||||
id: number; // 编号
|
||||
|
||||
@@ -3,6 +3,7 @@ import type { PageParam, PageResult } from '@vben/request';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export namespace BpmUserGroupApi {
|
||||
// TODO @ziye:不用 VO 后缀
|
||||
/** BPM 用户组 VO */
|
||||
export interface UserGroupVO {
|
||||
id: number;
|
||||
|
||||
Reference in New Issue
Block a user