Skip to content

Commit 8594d69

Browse files
committed
feat: update swagger
1 parent 9e71307 commit 8594d69

File tree

3 files changed

+345
-0
lines changed

3 files changed

+345
-0
lines changed

sqle/docs/docs.go

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7854,6 +7854,104 @@ var doc = `{
78547854
}
78557855
}
78567856
},
7857+
"/v1/projects/{project_name}/workflows/auto_create_and_execute": {
7858+
"post": {
7859+
"security": [
7860+
{
7861+
"ApiKeyAuth": []
7862+
}
7863+
],
7864+
"description": "auto create task group, audit SQL, create workflow, approve and execute workflow (sys user only)",
7865+
"consumes": [
7866+
"multipart/form-data"
7867+
],
7868+
"produces": [
7869+
"application/json"
7870+
],
7871+
"tags": [
7872+
"workflow"
7873+
],
7874+
"summary": "自动创建工单、审核SQL、审批和上线工单(仅sys用户)",
7875+
"operationId": "autoCreateAndExecuteWorkflowV1",
7876+
"parameters": [
7877+
{
7878+
"type": "string",
7879+
"description": "project name",
7880+
"name": "project_name",
7881+
"in": "path",
7882+
"required": true
7883+
},
7884+
{
7885+
"type": "string",
7886+
"description": "instances JSON array",
7887+
"name": "instances",
7888+
"in": "formData",
7889+
"required": true
7890+
},
7891+
{
7892+
"enum": [
7893+
"sql_file",
7894+
"sqls"
7895+
],
7896+
"type": "string",
7897+
"description": "exec mode",
7898+
"name": "exec_mode",
7899+
"in": "formData"
7900+
},
7901+
{
7902+
"type": "string",
7903+
"description": "file order method",
7904+
"name": "file_order_method",
7905+
"in": "formData"
7906+
},
7907+
{
7908+
"type": "string",
7909+
"description": "sqls for audit",
7910+
"name": "sql",
7911+
"in": "formData"
7912+
},
7913+
{
7914+
"type": "string",
7915+
"description": "workflow subject",
7916+
"name": "workflow_subject",
7917+
"in": "formData",
7918+
"required": true
7919+
},
7920+
{
7921+
"type": "string",
7922+
"description": "workflow description",
7923+
"name": "desc",
7924+
"in": "formData"
7925+
},
7926+
{
7927+
"type": "file",
7928+
"description": "input SQL file",
7929+
"name": "input_sql_file",
7930+
"in": "formData"
7931+
},
7932+
{
7933+
"type": "file",
7934+
"description": "input mybatis XML file",
7935+
"name": "input_mybatis_xml_file",
7936+
"in": "formData"
7937+
},
7938+
{
7939+
"type": "file",
7940+
"description": "input ZIP file",
7941+
"name": "input_zip_file",
7942+
"in": "formData"
7943+
}
7944+
],
7945+
"responses": {
7946+
"200": {
7947+
"description": "OK",
7948+
"schema": {
7949+
"$ref": "#/definitions/v1.AutoCreateAndExecuteWorkflowResV1"
7950+
}
7951+
}
7952+
}
7953+
}
7954+
},
78577955
"/v1/projects/{project_name}/workflows/cancel": {
78587956
"post": {
78597957
"security": [
@@ -14042,6 +14140,34 @@ var doc = `{
1404214140
}
1404314141
}
1404414142
},
14143+
"v1.AutoCreateAndExecuteWorkflowResV1": {
14144+
"type": "object",
14145+
"properties": {
14146+
"code": {
14147+
"type": "integer",
14148+
"example": 0
14149+
},
14150+
"data": {
14151+
"type": "object",
14152+
"$ref": "#/definitions/v1.AutoCreateAndExecuteWorkflowResV1Data"
14153+
},
14154+
"message": {
14155+
"type": "string",
14156+
"example": "ok"
14157+
}
14158+
}
14159+
},
14160+
"v1.AutoCreateAndExecuteWorkflowResV1Data": {
14161+
"type": "object",
14162+
"properties": {
14163+
"workflow_id": {
14164+
"type": "string"
14165+
},
14166+
"workflow_status": {
14167+
"type": "string"
14168+
}
14169+
}
14170+
},
1404514171
"v1.BackupSqlData": {
1404614172
"type": "object",
1404714173
"properties": {
@@ -22298,6 +22424,9 @@ var doc = `{
2229822424
},
2229922425
"number": {
2230022426
"type": "integer"
22427+
},
22428+
"sql_type": {
22429+
"type": "string"
2230122430
}
2230222431
}
2230322432
},

sqle/docs/swagger.json

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7838,6 +7838,104 @@
78387838
}
78397839
}
78407840
},
7841+
"/v1/projects/{project_name}/workflows/auto_create_and_execute": {
7842+
"post": {
7843+
"security": [
7844+
{
7845+
"ApiKeyAuth": []
7846+
}
7847+
],
7848+
"description": "auto create task group, audit SQL, create workflow, approve and execute workflow (sys user only)",
7849+
"consumes": [
7850+
"multipart/form-data"
7851+
],
7852+
"produces": [
7853+
"application/json"
7854+
],
7855+
"tags": [
7856+
"workflow"
7857+
],
7858+
"summary": "自动创建工单、审核SQL、审批和上线工单(仅sys用户)",
7859+
"operationId": "autoCreateAndExecuteWorkflowV1",
7860+
"parameters": [
7861+
{
7862+
"type": "string",
7863+
"description": "project name",
7864+
"name": "project_name",
7865+
"in": "path",
7866+
"required": true
7867+
},
7868+
{
7869+
"type": "string",
7870+
"description": "instances JSON array",
7871+
"name": "instances",
7872+
"in": "formData",
7873+
"required": true
7874+
},
7875+
{
7876+
"enum": [
7877+
"sql_file",
7878+
"sqls"
7879+
],
7880+
"type": "string",
7881+
"description": "exec mode",
7882+
"name": "exec_mode",
7883+
"in": "formData"
7884+
},
7885+
{
7886+
"type": "string",
7887+
"description": "file order method",
7888+
"name": "file_order_method",
7889+
"in": "formData"
7890+
},
7891+
{
7892+
"type": "string",
7893+
"description": "sqls for audit",
7894+
"name": "sql",
7895+
"in": "formData"
7896+
},
7897+
{
7898+
"type": "string",
7899+
"description": "workflow subject",
7900+
"name": "workflow_subject",
7901+
"in": "formData",
7902+
"required": true
7903+
},
7904+
{
7905+
"type": "string",
7906+
"description": "workflow description",
7907+
"name": "desc",
7908+
"in": "formData"
7909+
},
7910+
{
7911+
"type": "file",
7912+
"description": "input SQL file",
7913+
"name": "input_sql_file",
7914+
"in": "formData"
7915+
},
7916+
{
7917+
"type": "file",
7918+
"description": "input mybatis XML file",
7919+
"name": "input_mybatis_xml_file",
7920+
"in": "formData"
7921+
},
7922+
{
7923+
"type": "file",
7924+
"description": "input ZIP file",
7925+
"name": "input_zip_file",
7926+
"in": "formData"
7927+
}
7928+
],
7929+
"responses": {
7930+
"200": {
7931+
"description": "OK",
7932+
"schema": {
7933+
"$ref": "#/definitions/v1.AutoCreateAndExecuteWorkflowResV1"
7934+
}
7935+
}
7936+
}
7937+
}
7938+
},
78417939
"/v1/projects/{project_name}/workflows/cancel": {
78427940
"post": {
78437941
"security": [
@@ -14026,6 +14124,34 @@
1402614124
}
1402714125
}
1402814126
},
14127+
"v1.AutoCreateAndExecuteWorkflowResV1": {
14128+
"type": "object",
14129+
"properties": {
14130+
"code": {
14131+
"type": "integer",
14132+
"example": 0
14133+
},
14134+
"data": {
14135+
"type": "object",
14136+
"$ref": "#/definitions/v1.AutoCreateAndExecuteWorkflowResV1Data"
14137+
},
14138+
"message": {
14139+
"type": "string",
14140+
"example": "ok"
14141+
}
14142+
}
14143+
},
14144+
"v1.AutoCreateAndExecuteWorkflowResV1Data": {
14145+
"type": "object",
14146+
"properties": {
14147+
"workflow_id": {
14148+
"type": "string"
14149+
},
14150+
"workflow_status": {
14151+
"type": "string"
14152+
}
14153+
}
14154+
},
1402914155
"v1.BackupSqlData": {
1403014156
"type": "object",
1403114157
"properties": {
@@ -22282,6 +22408,9 @@
2228222408
},
2228322409
"number": {
2228422410
"type": "integer"
22411+
},
22412+
"sql_type": {
22413+
"type": "string"
2228522414
}
2228622415
}
2228722416
},

0 commit comments

Comments
 (0)