@@ -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+ "work_flow_status": {
14164+ "type": "string"
14165+ },
14166+ "workflow_id": {
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 },
0 commit comments