diff --git a/sqle/api/controller/v2/task.go b/sqle/api/controller/v2/task.go index 2be3e0c5d..bc7888a5d 100644 --- a/sqle/api/controller/v2/task.go +++ b/sqle/api/controller/v2/task.go @@ -28,22 +28,22 @@ type GetAuditTaskSQLsResV2 struct { } type AuditTaskSQLResV2 struct { - ExecSqlID uint `json:"exec_sql_id"` - Number uint `json:"number"` - ExecSQL string `json:"exec_sql"` - SQLSourceFile string `json:"sql_source_file"` - SQLStartLine uint64 `json:"sql_start_line"` - AuditResult []*AuditResult `json:"audit_result"` - AuditLevel string `json:"audit_level"` - AuditStatus string `json:"audit_status"` - ExecResult string `json:"exec_result"` - ExecStatus string `json:"exec_status"` - RollbackSQLs []string `json:"rollback_sqls,omitempty"` - Description string `json:"description"` - SQLType string `json:"sql_type"` - BackupStrategy string `json:"backup_strategy" enums:"none,manual,reverse_sql,origin_row"` - BackupStrategyTip string `json:"backup_strategy_tip"` - AssociatedRollbackWorkflows []AssociatedRollbackWorkflow `json:"associated_rollback_workflows"` + ExecSqlID uint `json:"exec_sql_id"` + Number uint `json:"number"` + ExecSQL string `json:"exec_sql"` + SQLSourceFile string `json:"sql_source_file"` + SQLStartLine uint64 `json:"sql_start_line"` + AuditResult []*AuditResult `json:"audit_result"` + AuditLevel string `json:"audit_level"` + AuditStatus string `json:"audit_status"` + ExecResult string `json:"exec_result"` + ExecStatus string `json:"exec_status"` + RollbackSQLs []string `json:"rollback_sqls,omitempty"` + Description string `json:"description"` + SQLType string `json:"sql_type"` + BackupStrategy string `json:"backup_strategy" enums:"none,manual,reverse_sql,origin_row"` + BackupStrategyTip string `json:"backup_strategy_tip"` + AssociatedRollbackWorkflows []*AssociatedRollbackWorkflow `json:"associated_rollback_workflows"` } type AssociatedRollbackWorkflow struct { diff --git a/sqle/api/controller/v2/workflow.go b/sqle/api/controller/v2/workflow.go index d50747ab2..e7711dbfb 100644 --- a/sqle/api/controller/v2/workflow.go +++ b/sqle/api/controller/v2/workflow.go @@ -1145,7 +1145,7 @@ type WorkflowResV2 struct { Record *WorkflowRecordResV2 `json:"record"` RecordHistory []*WorkflowRecordResV2 `json:"record_history_list,omitempty"` AssociatedStageWorkflows []*AssociatedStageWorkflows `json:"associated_stage_workflows,omitempty"` - AssociatedRollbackWorkflows []*AssociatedRollbackWorkflow `json:"associated_rollback_workflows"` + AssociatedRollbackWorkflows []*AssociatedRollbackWorkflow `json:"associated_rollback_workflows,omitempty"` } type AssociatedStageWorkflows struct {