Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sqle/api/controller/v1/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,7 @@ type ReExecuteTaskOnWorkflowReq struct {
// @Param task_id path string true "task id"
// @Param instance body v1.ReExecuteTaskOnWorkflowReq true "re-execute task on workflow request"
// @Success 200 {object} controller.BaseRes
// @router /v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/exec_sqls/re_execute [post]
// @router /v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/re_execute [post]
func ReExecuteTaskOnWorkflowV1(c echo.Context) error {
req := new(ReExecuteTaskOnWorkflowReq)
if err := controller.BindAndValidateReq(c, req); err != nil {
Expand Down
44 changes: 22 additions & 22 deletions sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -8148,19 +8148,25 @@ var doc = `{
}
}
},
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/exec_sqls/re_execute": {
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/order_file": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "re-execute task on workflow",
"description": "update sql file order",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"workflow"
"task"
],
"summary": "单数据源SQL重新上线",
"operationId": "reExecuteTaskOnWorkflowV1",
"summary": "修改文件上线顺序",
"operationId": "updateSqlFileOrderV1",
"parameters": [
{
"type": "string",
Expand All @@ -8184,44 +8190,38 @@ var doc = `{
"required": true
},
{
"description": "re-execute task on workflow request",
"description": "instance body v1.UpdateSqlFileOrderV1Req true",
"name": "instance",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.ReExecuteTaskOnWorkflowReq"
"$ref": "#/definitions/v1.UpdateSqlFileOrderV1Req"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/controller.BaseRes"
"$ref": "#/definitions/v1.GetSqlFileOrderMethodResV1"
}
}
}
}
},
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/order_file": {
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/re_execute": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "update sql file order",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"description": "re-execute task on workflow",
"tags": [
"task"
"workflow"
],
"summary": "修改文件上线顺序",
"operationId": "updateSqlFileOrderV1",
"summary": "单数据源SQL重新上线",
"operationId": "reExecuteTaskOnWorkflowV1",
"parameters": [
{
"type": "string",
Expand All @@ -8245,20 +8245,20 @@ var doc = `{
"required": true
},
{
"description": "instance body v1.UpdateSqlFileOrderV1Req true",
"description": "re-execute task on workflow request",
"name": "instance",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateSqlFileOrderV1Req"
"$ref": "#/definitions/v1.ReExecuteTaskOnWorkflowReq"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.GetSqlFileOrderMethodResV1"
"$ref": "#/definitions/controller.BaseRes"
}
}
}
Expand Down
44 changes: 22 additions & 22 deletions sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -8132,19 +8132,25 @@
}
}
},
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/exec_sqls/re_execute": {
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/order_file": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "re-execute task on workflow",
"description": "update sql file order",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"workflow"
"task"
],
"summary": "单数据源SQL重新上线",
"operationId": "reExecuteTaskOnWorkflowV1",
"summary": "修改文件上线顺序",
"operationId": "updateSqlFileOrderV1",
"parameters": [
{
"type": "string",
Expand All @@ -8168,44 +8174,38 @@
"required": true
},
{
"description": "re-execute task on workflow request",
"description": "instance body v1.UpdateSqlFileOrderV1Req true",
"name": "instance",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.ReExecuteTaskOnWorkflowReq"
"$ref": "#/definitions/v1.UpdateSqlFileOrderV1Req"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/controller.BaseRes"
"$ref": "#/definitions/v1.GetSqlFileOrderMethodResV1"
}
}
}
}
},
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/order_file": {
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/re_execute": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "update sql file order",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"description": "re-execute task on workflow",
"tags": [
"task"
"workflow"
],
"summary": "修改文件上线顺序",
"operationId": "updateSqlFileOrderV1",
"summary": "单数据源SQL重新上线",
"operationId": "reExecuteTaskOnWorkflowV1",
"parameters": [
{
"type": "string",
Expand All @@ -8229,20 +8229,20 @@
"required": true
},
{
"description": "instance body v1.UpdateSqlFileOrderV1Req true",
"description": "re-execute task on workflow request",
"name": "instance",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.UpdateSqlFileOrderV1Req"
"$ref": "#/definitions/v1.ReExecuteTaskOnWorkflowReq"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.GetSqlFileOrderMethodResV1"
"$ref": "#/definitions/controller.BaseRes"
}
}
}
Expand Down
40 changes: 20 additions & 20 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12534,10 +12534,12 @@ paths:
summary: 下载工单中的SQL备份
tags:
- task
/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/exec_sqls/re_execute:
/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/order_file:
post:
description: re-execute task on workflow
operationId: reExecuteTaskOnWorkflowV1
consumes:
- application/json
description: update sql file order
operationId: updateSqlFileOrderV1
parameters:
- description: project name
in: path
Expand All @@ -12554,28 +12556,28 @@ paths:
name: task_id
required: true
type: string
- description: re-execute task on workflow request
- description: instance body v1.UpdateSqlFileOrderV1Req true
in: body
name: instance
required: true
schema:
$ref: '#/definitions/v1.ReExecuteTaskOnWorkflowReq'
$ref: '#/definitions/v1.UpdateSqlFileOrderV1Req'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/controller.BaseRes'
$ref: '#/definitions/v1.GetSqlFileOrderMethodResV1'
security:
- ApiKeyAuth: []
summary: 单数据源SQL重新上线
summary: 修改文件上线顺序
tags:
- workflow
/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/order_file:
- task
/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/re_execute:
post:
consumes:
- application/json
description: update sql file order
operationId: updateSqlFileOrderV1
description: re-execute task on workflow
operationId: reExecuteTaskOnWorkflowV1
parameters:
- description: project name
in: path
Expand All @@ -12592,24 +12594,22 @@ paths:
name: task_id
required: true
type: string
- description: instance body v1.UpdateSqlFileOrderV1Req true
- description: re-execute task on workflow request
in: body
name: instance
required: true
schema:
$ref: '#/definitions/v1.UpdateSqlFileOrderV1Req'
produces:
- application/json
$ref: '#/definitions/v1.ReExecuteTaskOnWorkflowReq'
responses:
"200":
description: OK
schema:
$ref: '#/definitions/v1.GetSqlFileOrderMethodResV1'
$ref: '#/definitions/controller.BaseRes'
security:
- ApiKeyAuth: []
summary: 修改文件上线顺序
summary: 单数据源SQL重新上线
tags:
- task
- workflow
/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/terminate:
post:
description: execute one task on workflow
Expand Down
Loading