添加通知管理功能

This commit is contained in:
dengqichen 2025-10-23 20:18:06 +08:00
parent 0ca4aa58b7
commit e0e1f4e989

View File

@ -1,4 +1,4 @@
import { Page, BaseQuery } from '@/types/base'; import { BaseQuery } from '@/types/base';
export interface WorkflowTemplateWithInstances { export interface WorkflowTemplateWithInstances {
id: number; id: number;
@ -22,6 +22,40 @@ export interface WorkflowInstanceStage {
endTime: string | null; endTime: string | null;
} }
export interface WorkflowGraphNode {
id: string;
nodeCode: string;
nodeType: string;
nodeName: string;
position: {
x: number;
y: number;
};
configs: Record<string, any>;
inputMapping: Record<string, any>;
outputs: any[];
}
export interface WorkflowGraphEdge {
id: string;
from: string;
to: string;
name: string;
config: {
type: string;
condition: {
type: string;
priority: number;
};
};
vertices: any[];
}
export interface WorkflowGraph {
nodes: WorkflowGraphNode[];
edges: WorkflowGraphEdge[];
}
export interface WorkflowHistoricalInstance { export interface WorkflowHistoricalInstance {
id: number; id: number;
processInstanceId: string; processInstanceId: string;
@ -31,6 +65,7 @@ export interface WorkflowHistoricalInstance {
startTime: string; startTime: string;
endTime: string | null; endTime: string | null;
stages: WorkflowInstanceStage[]; stages: WorkflowInstanceStage[];
graph?: WorkflowGraph;
} }
export interface WorkflowHistoricalInstanceQuery extends BaseQuery { export interface WorkflowHistoricalInstanceQuery extends BaseQuery {