Skip to content

Commit

Permalink
api definition: add omit empty
Browse files Browse the repository at this point in the history
  • Loading branch information
winfredLIN committed Nov 20, 2024
1 parent 6664931 commit 8512f2b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions sqle/api/controller/v2/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion sqle/api/controller/v2/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8512f2b

Please sign in to comment.