Skip to content

Commit 827e899

Browse files
committed
fix: fix incorrect interface path
1 parent 988b88c commit 827e899

File tree

4 files changed

+65
-65
lines changed

4 files changed

+65
-65
lines changed

sqle/api/controller/v1/workflow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ type ReExecuteTaskOnWorkflowReq struct {
13611361
// @Param task_id path string true "task id"
13621362
// @Param instance body v1.ReExecuteTaskOnWorkflowReq true "re-execute task on workflow request"
13631363
// @Success 200 {object} controller.BaseRes
1364-
// @router /v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/exec_sqls/re_execute [post]
1364+
// @router /v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/re_execute [post]
13651365
func ReExecuteTaskOnWorkflowV1(c echo.Context) error {
13661366
req := new(ReExecuteTaskOnWorkflowReq)
13671367
if err := controller.BindAndValidateReq(c, req); err != nil {

sqle/docs/docs.go

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8148,19 +8148,25 @@ var doc = `{
81488148
}
81498149
}
81508150
},
8151-
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/exec_sqls/re_execute": {
8151+
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/order_file": {
81528152
"post": {
81538153
"security": [
81548154
{
81558155
"ApiKeyAuth": []
81568156
}
81578157
],
8158-
"description": "re-execute task on workflow",
8158+
"description": "update sql file order",
8159+
"consumes": [
8160+
"application/json"
8161+
],
8162+
"produces": [
8163+
"application/json"
8164+
],
81598165
"tags": [
8160-
"workflow"
8166+
"task"
81618167
],
8162-
"summary": "单数据源SQL重新上线",
8163-
"operationId": "reExecuteTaskOnWorkflowV1",
8168+
"summary": "修改文件上线顺序",
8169+
"operationId": "updateSqlFileOrderV1",
81648170
"parameters": [
81658171
{
81668172
"type": "string",
@@ -8184,44 +8190,38 @@ var doc = `{
81848190
"required": true
81858191
},
81868192
{
8187-
"description": "re-execute task on workflow request",
8193+
"description": "instance body v1.UpdateSqlFileOrderV1Req true",
81888194
"name": "instance",
81898195
"in": "body",
81908196
"required": true,
81918197
"schema": {
8192-
"$ref": "#/definitions/v1.ReExecuteTaskOnWorkflowReq"
8198+
"$ref": "#/definitions/v1.UpdateSqlFileOrderV1Req"
81938199
}
81948200
}
81958201
],
81968202
"responses": {
81978203
"200": {
81988204
"description": "OK",
81998205
"schema": {
8200-
"$ref": "#/definitions/controller.BaseRes"
8206+
"$ref": "#/definitions/v1.GetSqlFileOrderMethodResV1"
82018207
}
82028208
}
82038209
}
82048210
}
82058211
},
8206-
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/order_file": {
8212+
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/re_execute": {
82078213
"post": {
82088214
"security": [
82098215
{
82108216
"ApiKeyAuth": []
82118217
}
82128218
],
8213-
"description": "update sql file order",
8214-
"consumes": [
8215-
"application/json"
8216-
],
8217-
"produces": [
8218-
"application/json"
8219-
],
8219+
"description": "re-execute task on workflow",
82208220
"tags": [
8221-
"task"
8221+
"workflow"
82228222
],
8223-
"summary": "修改文件上线顺序",
8224-
"operationId": "updateSqlFileOrderV1",
8223+
"summary": "单数据源SQL重新上线",
8224+
"operationId": "reExecuteTaskOnWorkflowV1",
82258225
"parameters": [
82268226
{
82278227
"type": "string",
@@ -8245,20 +8245,20 @@ var doc = `{
82458245
"required": true
82468246
},
82478247
{
8248-
"description": "instance body v1.UpdateSqlFileOrderV1Req true",
8248+
"description": "re-execute task on workflow request",
82498249
"name": "instance",
82508250
"in": "body",
82518251
"required": true,
82528252
"schema": {
8253-
"$ref": "#/definitions/v1.UpdateSqlFileOrderV1Req"
8253+
"$ref": "#/definitions/v1.ReExecuteTaskOnWorkflowReq"
82548254
}
82558255
}
82568256
],
82578257
"responses": {
82588258
"200": {
82598259
"description": "OK",
82608260
"schema": {
8261-
"$ref": "#/definitions/v1.GetSqlFileOrderMethodResV1"
8261+
"$ref": "#/definitions/controller.BaseRes"
82628262
}
82638263
}
82648264
}

sqle/docs/swagger.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8132,19 +8132,25 @@
81328132
}
81338133
}
81348134
},
8135-
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/exec_sqls/re_execute": {
8135+
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/order_file": {
81368136
"post": {
81378137
"security": [
81388138
{
81398139
"ApiKeyAuth": []
81408140
}
81418141
],
8142-
"description": "re-execute task on workflow",
8142+
"description": "update sql file order",
8143+
"consumes": [
8144+
"application/json"
8145+
],
8146+
"produces": [
8147+
"application/json"
8148+
],
81438149
"tags": [
8144-
"workflow"
8150+
"task"
81458151
],
8146-
"summary": "单数据源SQL重新上线",
8147-
"operationId": "reExecuteTaskOnWorkflowV1",
8152+
"summary": "修改文件上线顺序",
8153+
"operationId": "updateSqlFileOrderV1",
81488154
"parameters": [
81498155
{
81508156
"type": "string",
@@ -8168,44 +8174,38 @@
81688174
"required": true
81698175
},
81708176
{
8171-
"description": "re-execute task on workflow request",
8177+
"description": "instance body v1.UpdateSqlFileOrderV1Req true",
81728178
"name": "instance",
81738179
"in": "body",
81748180
"required": true,
81758181
"schema": {
8176-
"$ref": "#/definitions/v1.ReExecuteTaskOnWorkflowReq"
8182+
"$ref": "#/definitions/v1.UpdateSqlFileOrderV1Req"
81778183
}
81788184
}
81798185
],
81808186
"responses": {
81818187
"200": {
81828188
"description": "OK",
81838189
"schema": {
8184-
"$ref": "#/definitions/controller.BaseRes"
8190+
"$ref": "#/definitions/v1.GetSqlFileOrderMethodResV1"
81858191
}
81868192
}
81878193
}
81888194
}
81898195
},
8190-
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/order_file": {
8196+
"/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/re_execute": {
81918197
"post": {
81928198
"security": [
81938199
{
81948200
"ApiKeyAuth": []
81958201
}
81968202
],
8197-
"description": "update sql file order",
8198-
"consumes": [
8199-
"application/json"
8200-
],
8201-
"produces": [
8202-
"application/json"
8203-
],
8203+
"description": "re-execute task on workflow",
82048204
"tags": [
8205-
"task"
8205+
"workflow"
82068206
],
8207-
"summary": "修改文件上线顺序",
8208-
"operationId": "updateSqlFileOrderV1",
8207+
"summary": "单数据源SQL重新上线",
8208+
"operationId": "reExecuteTaskOnWorkflowV1",
82098209
"parameters": [
82108210
{
82118211
"type": "string",
@@ -8229,20 +8229,20 @@
82298229
"required": true
82308230
},
82318231
{
8232-
"description": "instance body v1.UpdateSqlFileOrderV1Req true",
8232+
"description": "re-execute task on workflow request",
82338233
"name": "instance",
82348234
"in": "body",
82358235
"required": true,
82368236
"schema": {
8237-
"$ref": "#/definitions/v1.UpdateSqlFileOrderV1Req"
8237+
"$ref": "#/definitions/v1.ReExecuteTaskOnWorkflowReq"
82388238
}
82398239
}
82408240
],
82418241
"responses": {
82428242
"200": {
82438243
"description": "OK",
82448244
"schema": {
8245-
"$ref": "#/definitions/v1.GetSqlFileOrderMethodResV1"
8245+
"$ref": "#/definitions/controller.BaseRes"
82468246
}
82478247
}
82488248
}

sqle/docs/swagger.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12534,10 +12534,12 @@ paths:
1253412534
summary: 下载工单中的SQL备份
1253512535
tags:
1253612536
- task
12537-
/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/exec_sqls/re_execute:
12537+
/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/order_file:
1253812538
post:
12539-
description: re-execute task on workflow
12540-
operationId: reExecuteTaskOnWorkflowV1
12539+
consumes:
12540+
- application/json
12541+
description: update sql file order
12542+
operationId: updateSqlFileOrderV1
1254112543
parameters:
1254212544
- description: project name
1254312545
in: path
@@ -12554,28 +12556,28 @@ paths:
1255412556
name: task_id
1255512557
required: true
1255612558
type: string
12557-
- description: re-execute task on workflow request
12559+
- description: instance body v1.UpdateSqlFileOrderV1Req true
1255812560
in: body
1255912561
name: instance
1256012562
required: true
1256112563
schema:
12562-
$ref: '#/definitions/v1.ReExecuteTaskOnWorkflowReq'
12564+
$ref: '#/definitions/v1.UpdateSqlFileOrderV1Req'
12565+
produces:
12566+
- application/json
1256312567
responses:
1256412568
"200":
1256512569
description: OK
1256612570
schema:
12567-
$ref: '#/definitions/controller.BaseRes'
12571+
$ref: '#/definitions/v1.GetSqlFileOrderMethodResV1'
1256812572
security:
1256912573
- ApiKeyAuth: []
12570-
summary: 单数据源SQL重新上线
12574+
summary: 修改文件上线顺序
1257112575
tags:
12572-
- workflow
12573-
/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/order_file:
12576+
- task
12577+
/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/re_execute:
1257412578
post:
12575-
consumes:
12576-
- application/json
12577-
description: update sql file order
12578-
operationId: updateSqlFileOrderV1
12579+
description: re-execute task on workflow
12580+
operationId: reExecuteTaskOnWorkflowV1
1257912581
parameters:
1258012582
- description: project name
1258112583
in: path
@@ -12592,24 +12594,22 @@ paths:
1259212594
name: task_id
1259312595
required: true
1259412596
type: string
12595-
- description: instance body v1.UpdateSqlFileOrderV1Req true
12597+
- description: re-execute task on workflow request
1259612598
in: body
1259712599
name: instance
1259812600
required: true
1259912601
schema:
12600-
$ref: '#/definitions/v1.UpdateSqlFileOrderV1Req'
12601-
produces:
12602-
- application/json
12602+
$ref: '#/definitions/v1.ReExecuteTaskOnWorkflowReq'
1260312603
responses:
1260412604
"200":
1260512605
description: OK
1260612606
schema:
12607-
$ref: '#/definitions/v1.GetSqlFileOrderMethodResV1'
12607+
$ref: '#/definitions/controller.BaseRes'
1260812608
security:
1260912609
- ApiKeyAuth: []
12610-
summary: 修改文件上线顺序
12610+
summary: 单数据源SQL重新上线
1261112611
tags:
12612-
- task
12612+
- workflow
1261312613
/v1/projects/{project_name}/workflows/{workflow_id}/tasks/{task_id}/terminate:
1261412614
post:
1261512615
description: execute one task on workflow

0 commit comments

Comments
 (0)