Skip to content

Commit

Permalink
Merge pull request #2410 from actiontech/issue1468-7
Browse files Browse the repository at this point in the history
接口复审:SQL审核文件模式单个文件页面
  • Loading branch information
ColdWaterLW authored May 7, 2024
2 parents 14cf022 + 445ed6b commit b5bab37
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 2 deletions.
16 changes: 14 additions & 2 deletions sqle/api/controller/v2/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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
Expand Down
30 changes: 30 additions & 0 deletions sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -13730,6 +13756,10 @@ var doc = `{
"exec_order": {
"type": "integer"
},
"exec_result_count": {
"type": "object",
"$ref": "#/definitions/v2.ExecResultCount"
},
"exec_status": {
"type": "string"
},
Expand Down
30 changes: 30 additions & 0 deletions sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -13714,6 +13740,10 @@
"exec_order": {
"type": "integer"
},
"exec_result_count": {
"type": "object",
"$ref": "#/definitions/v2.ExecResultCount"
},
"exec_status": {
"type": "string"
},
Expand Down
20 changes: 20 additions & 0 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3751,13 +3751,33 @@ 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:
$ref: '#/definitions/v2.AuditResultCount'
type: object
exec_order:
type: integer
exec_result_count:
$ref: '#/definitions/v2.ExecResultCount'
type: object
exec_status:
type: string
file_id:
Expand Down

0 comments on commit b5bab37

Please sign in to comment.