diff --git a/sqle/api/controller/v2/task.go b/sqle/api/controller/v2/task.go index bc7888a5d..80cb64861 100644 --- a/sqle/api/controller/v2/task.go +++ b/sqle/api/controller/v2/task.go @@ -49,6 +49,7 @@ type AuditTaskSQLResV2 struct { type AssociatedRollbackWorkflow struct { WorkflowID string `json:"workflow_id"` WorkflowName string `json:"workflow_name"` + Status string `json:"status" enums:"wait_for_audit,wait_for_execution,rejected,canceled,exec_failed,executing,finished"` } type AuditResult struct { diff --git a/sqle/docs/docs.go b/sqle/docs/docs.go index 5f9a1b6c8..fbf022e86 100644 --- a/sqle/docs/docs.go +++ b/sqle/docs/docs.go @@ -18513,6 +18513,18 @@ var doc = `{ "v2.AssociatedRollbackWorkflow": { "type": "object", "properties": { + "status": { + "type": "string", + "enum": [ + "wait_for_audit", + "wait_for_execution", + "rejected", + "canceled", + "exec_failed", + "executing", + "finished" + ] + }, "workflow_id": { "type": "string" }, diff --git a/sqle/docs/swagger.json b/sqle/docs/swagger.json index d45f83750..1058e22ea 100644 --- a/sqle/docs/swagger.json +++ b/sqle/docs/swagger.json @@ -18497,6 +18497,18 @@ "v2.AssociatedRollbackWorkflow": { "type": "object", "properties": { + "status": { + "type": "string", + "enum": [ + "wait_for_audit", + "wait_for_execution", + "rejected", + "canceled", + "exec_failed", + "executing", + "finished" + ] + }, "workflow_id": { "type": "string" }, diff --git a/sqle/docs/swagger.yaml b/sqle/docs/swagger.yaml index 00382ae4d..539569509 100644 --- a/sqle/docs/swagger.yaml +++ b/sqle/docs/swagger.yaml @@ -5080,6 +5080,16 @@ definitions: type: object v2.AssociatedRollbackWorkflow: properties: + status: + enum: + - wait_for_audit + - wait_for_execution + - rejected + - canceled + - exec_failed + - executing + - finished + type: string workflow_id: type: string workflow_name: