Skip to content

Commit

Permalink
Merge pull request #2009 from actiontech/fix-issue1969
Browse files Browse the repository at this point in the history
Fix issue1969
  • Loading branch information
ColdWaterLW authored Nov 9, 2023
2 parents 5ea1e5b + 9244d1d commit 1a19266
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
2 changes: 2 additions & 0 deletions sqle/api/controller/v1/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ type AuditTaskGroupResV1 struct {
// @Description 1. formData[sql]: sql content;
// @Description 2. file[input_sql_file]: it is a sql file;
// @Description 3. file[input_mybatis_xml_file]: it is mybatis xml file, sql will be parsed from it.
// @Description 4. file[input_zip_file]: it is zip file, sql will be parsed from it.
// @Accept mpfd
// @Produce json
// @Tags task
Expand All @@ -711,6 +712,7 @@ type AuditTaskGroupResV1 struct {
// @Param sql formData string false "sqls for audit"
// @Param input_sql_file formData file false "input SQL file"
// @Param input_mybatis_xml_file formData file false "input mybatis XML file"
// @Param input_zip_file formData file false "input ZIP file"
// @Success 200 {object} v1.AuditTaskGroupResV1
// @router /v1/task_groups/audit [post]
func AuditTaskGroupV1(c echo.Context) error {
Expand Down
8 changes: 7 additions & 1 deletion sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7914,7 +7914,7 @@ var doc = `{
"ApiKeyAuth": []
}
],
"description": "audit task group.\n1. formData[sql]: sql content;\n2. file[input_sql_file]: it is a sql file;\n3. file[input_mybatis_xml_file]: it is mybatis xml file, sql will be parsed from it.",
"description": "audit task group.\n1. formData[sql]: sql content;\n2. file[input_sql_file]: it is a sql file;\n3. file[input_mybatis_xml_file]: it is mybatis xml file, sql will be parsed from it.\n4. file[input_zip_file]: it is zip file, sql will be parsed from it.",
"consumes": [
"multipart/form-data"
],
Expand Down Expand Up @@ -7951,6 +7951,12 @@ var doc = `{
"description": "input mybatis XML file",
"name": "input_mybatis_xml_file",
"in": "formData"
},
{
"type": "file",
"description": "input ZIP file",
"name": "input_zip_file",
"in": "formData"
}
],
"responses": {
Expand Down
8 changes: 7 additions & 1 deletion sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -7898,7 +7898,7 @@
"ApiKeyAuth": []
}
],
"description": "audit task group.\n1. formData[sql]: sql content;\n2. file[input_sql_file]: it is a sql file;\n3. file[input_mybatis_xml_file]: it is mybatis xml file, sql will be parsed from it.",
"description": "audit task group.\n1. formData[sql]: sql content;\n2. file[input_sql_file]: it is a sql file;\n3. file[input_mybatis_xml_file]: it is mybatis xml file, sql will be parsed from it.\n4. file[input_zip_file]: it is zip file, sql will be parsed from it.",
"consumes": [
"multipart/form-data"
],
Expand Down Expand Up @@ -7935,6 +7935,12 @@
"description": "input mybatis XML file",
"name": "input_mybatis_xml_file",
"in": "formData"
},
{
"type": "file",
"description": "input ZIP file",
"name": "input_zip_file",
"in": "formData"
}
],
"responses": {
Expand Down
5 changes: 5 additions & 0 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10108,6 +10108,7 @@ paths:
1. formData[sql]: sql content;
2. file[input_sql_file]: it is a sql file;
3. file[input_mybatis_xml_file]: it is mybatis xml file, sql will be parsed from it.
4. file[input_zip_file]: it is zip file, sql will be parsed from it.
operationId: auditTaskGroupIdV1
parameters:
- description: group id of tasks
Expand All @@ -10127,6 +10128,10 @@ paths:
in: formData
name: input_mybatis_xml_file
type: file
- description: input ZIP file
in: formData
name: input_zip_file
type: file
produces:
- application/json
responses:
Expand Down

0 comments on commit 1a19266

Please sign in to comment.