第一次提交

This commit is contained in:
rjb
2026-01-19 00:09:36 +08:00
parent de4b5059e9
commit 6674060f2f
191 changed files with 40940 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
/**
* TypeScript 类型定义
*/
// 用户类型
export interface User {
id: string
username: string
email: string
role: string
created_at?: string
updated_at?: string
}
// 工作流节点类型
export interface WorkflowNode {
id: string
type: string
position: { x: number; y: number }
data: Record<string, any>
}
// 工作流边类型
export interface WorkflowEdge {
id: string
source: string
target: string
sourceHandle?: string
targetHandle?: string
}
// 工作流类型
export interface Workflow {
id: string
name: string
description?: string
nodes: WorkflowNode[]
edges: WorkflowEdge[]
version: number
status: 'draft' | 'published' | 'running' | 'stopped'
user_id: string
created_at: string
updated_at: string
}
// API响应类型
export interface ApiResponse<T = any> {
code?: number
message?: string
data: T
timestamp?: string
}