Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue1969 #2009

Merged
merged 2 commits into from
Nov 9, 2023
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: 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
Loading