From 31af72d31082d6f5251e53f9e4c7478b3b182cfa Mon Sep 17 00:00:00 2001 From: actiontech-zihan Date: Thu, 30 Apr 2026 08:24:53 +0000 Subject: [PATCH] fix(#802): expose workflow assignee name list in dashboard API Update the shared dashboard response type and generated swagger docs so the global workflow list returns current step assignees as a name list. --- sqle/docs/docs.go | 11 +++++++---- sqle/docs/swagger.json | 11 +++++++---- sqle/docs/swagger.yaml | 8 +++++--- sqle/server/dashboard/types.go | 2 +- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/sqle/docs/docs.go b/sqle/docs/docs.go index 3a378ef2a..632ab2aac 100644 --- a/sqle/docs/docs.go +++ b/sqle/docs/docs.go @@ -13936,14 +13936,17 @@ var doc = `{ "dashboard.GlobalWorkflowListItem": { "type": "object", "properties": { - "assignee": { - "description": "当前处理人姓名", - "type": "string" - }, "created_at": { "description": "创建时间", "type": "string" }, + "current_step_assignee_user_name_list": { + "description": "当前处理人姓名列表", + "type": "array", + "items": { + "type": "string" + } + }, "instance_id": { "description": "实例ID", "type": "string" diff --git a/sqle/docs/swagger.json b/sqle/docs/swagger.json index cd8222cd6..f820ae078 100644 --- a/sqle/docs/swagger.json +++ b/sqle/docs/swagger.json @@ -13920,14 +13920,17 @@ "dashboard.GlobalWorkflowListItem": { "type": "object", "properties": { - "assignee": { - "description": "当前处理人姓名", - "type": "string" - }, "created_at": { "description": "创建时间", "type": "string" }, + "current_step_assignee_user_name_list": { + "description": "当前处理人姓名列表", + "type": "array", + "items": { + "type": "string" + } + }, "instance_id": { "description": "实例ID", "type": "string" diff --git a/sqle/docs/swagger.yaml b/sqle/docs/swagger.yaml index 482a836f1..50657e39f 100644 --- a/sqle/docs/swagger.yaml +++ b/sqle/docs/swagger.yaml @@ -184,12 +184,14 @@ definitions: type: object dashboard.GlobalWorkflowListItem: properties: - assignee: - description: 当前处理人姓名 - type: string created_at: description: 创建时间 type: string + current_step_assignee_user_name_list: + description: 当前处理人姓名列表 + items: + type: string + type: array instance_id: description: 实例ID type: string diff --git a/sqle/server/dashboard/types.go b/sqle/server/dashboard/types.go index 1435d5ad5..d9f1a06bf 100644 --- a/sqle/server/dashboard/types.go +++ b/sqle/server/dashboard/types.go @@ -93,7 +93,7 @@ type GlobalWorkflowListItem struct { ProjectName string `json:"project_name"` // 项目名称 InstanceId string `json:"instance_id"` // 实例ID InstanceName string `json:"instance_name"` // 实例名称 - Assignee string `json:"assignee"` // 当前处理人姓名 + CurrentStepAssigneeUserNameList []string `json:"current_step_assignee_user_name_list"` // 当前处理人姓名列表 Priority string `json:"priority"` // High, Medium, Low Status UnifiedWorkflowStatus `json:"status" enums:"pending_approval,pending_action,in_progress,exporting,rejected,cancelled,failed,completed,unknown"` // 工单状态 CreatedAt string `json:"created_at"` // 创建时间