diff --git a/sqle/api/controller/v2/workflow.go b/sqle/api/controller/v2/workflow.go index dc975cc06a..cb73a5bd18 100644 --- a/sqle/api/controller/v2/workflow.go +++ b/sqle/api/controller/v2/workflow.go @@ -1258,8 +1258,9 @@ func convertWorkflowStepToRes(step *model.WorkflowStep) *WorkflowStepResV2 { } type GetAuditTaskFileOverviewReq struct { - PageIndex uint32 `json:"page_index" query:"page_index" valid:"required"` - PageSize uint32 `json:"page_size" query:"page_size" valid:"required"` + PageIndex uint32 `json:"page_index" query:"page_index" valid:"required"` + PageSize uint32 `json:"page_size" query:"page_size" valid:"required"` + FilterFileID string `json:"filter_file_id" query:"filter_file_id"` } type GetAuditTaskFileOverviewRes struct { @@ -1274,6 +1275,7 @@ type FileOverview struct { ExecOrder uint `json:"exec_order"` ExecStatus string `json:"exec_status"` AuditResultCount *AuditResultCount `json:"audit_result_count"` + ExecResultCount *ExecResultCount `json:"exec_result_count"` } type AuditResultCount struct { @@ -1283,6 +1285,16 @@ type AuditResultCount struct { NoticeSQLCount uint `json:"notice_sql_count"` } +type ExecResultCount struct { + FailedCount uint `json:"failed_count"` + SucceededCount uint `json:"succeeded_count"` + InitializedCount uint `json:"initialized_count"` + DoingCount uint `json:"doing_count"` + ManuallyExecutedCount uint `json:"manually_executed_count"` + TerminateSucceededCount uint `json:"terminate_succeeded_count"` + TerminateFailedCount uint `json:"terminate_failed_count"` +} + // GetAuditTaskFileOverview // @Summary 获取审核任务文件概览 // @Description get audit task file overview diff --git a/sqle/docs/docs.go b/sqle/docs/docs.go index 2045aceaf0..e41294f6e7 100644 --- a/sqle/docs/docs.go +++ b/sqle/docs/docs.go @@ -13720,6 +13720,32 @@ var doc = `{ } } }, + "v2.ExecResultCount": { + "type": "object", + "properties": { + "doing_count": { + "type": "integer" + }, + "failed_count": { + "type": "integer" + }, + "initialized_count": { + "type": "integer" + }, + "manually_executed_count": { + "type": "integer" + }, + "succeeded_count": { + "type": "integer" + }, + "terminate_failed_count": { + "type": "integer" + }, + "terminate_succeeded_count": { + "type": "integer" + } + } + }, "v2.FileOverview": { "type": "object", "properties": { @@ -13730,6 +13756,10 @@ var doc = `{ "exec_order": { "type": "integer" }, + "exec_result_count": { + "type": "object", + "$ref": "#/definitions/v2.ExecResultCount" + }, "exec_status": { "type": "string" }, diff --git a/sqle/docs/swagger.json b/sqle/docs/swagger.json index 5f7cda5736..fcdf775969 100644 --- a/sqle/docs/swagger.json +++ b/sqle/docs/swagger.json @@ -13704,6 +13704,32 @@ } } }, + "v2.ExecResultCount": { + "type": "object", + "properties": { + "doing_count": { + "type": "integer" + }, + "failed_count": { + "type": "integer" + }, + "initialized_count": { + "type": "integer" + }, + "manually_executed_count": { + "type": "integer" + }, + "succeeded_count": { + "type": "integer" + }, + "terminate_failed_count": { + "type": "integer" + }, + "terminate_succeeded_count": { + "type": "integer" + } + } + }, "v2.FileOverview": { "type": "object", "properties": { @@ -13714,6 +13740,10 @@ "exec_order": { "type": "integer" }, + "exec_result_count": { + "type": "object", + "$ref": "#/definitions/v2.ExecResultCount" + }, "exec_status": { "type": "string" }, diff --git a/sqle/docs/swagger.yaml b/sqle/docs/swagger.yaml index 6b32156c9d..386cc0425c 100644 --- a/sqle/docs/swagger.yaml +++ b/sqle/docs/swagger.yaml @@ -3751,6 +3751,23 @@ definitions: logo_url: type: string type: object + v2.ExecResultCount: + properties: + doing_count: + type: integer + failed_count: + type: integer + initialized_count: + type: integer + manually_executed_count: + type: integer + succeeded_count: + type: integer + terminate_failed_count: + type: integer + terminate_succeeded_count: + type: integer + type: object v2.FileOverview: properties: audit_result_count: @@ -3758,6 +3775,9 @@ definitions: type: object exec_order: type: integer + exec_result_count: + $ref: '#/definitions/v2.ExecResultCount' + type: object exec_status: type: string file_id: