增加删除文件接口

This commit is contained in:
pixel
2019-11-20 16:55:50 +08:00
parent 285a86fdc4
commit ccb7e88293
8 changed files with 202 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2019-11-20 10:46:22.2795763 +0800 CST m=+0.053896201
// 2019-11-20 16:37:42.2606856 +0800 CST m=+0.064825001
package docs
@@ -505,6 +505,42 @@ var doc = `{
}
}
},
"/fileUploadAndDownload/deleteFile": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"FileUploadAndDownload"
],
"summary": "删除文件",
"parameters": [
{
"description": "传入文件里面id即可",
"name": "data",
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/dbModel.FileUploadAndDownload"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/fileUploadAndDownload/getFileList": {
"post": {
"security": [
@@ -1251,6 +1287,20 @@ var doc = `{
}
}
},
"dbModel.FileUploadAndDownload": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"tag": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"dbModel.Workflow": {
"type": "object",
"properties": {
@@ -1297,10 +1347,6 @@ var doc = `{
"stepNo": {
"description": "步骤id (第几步)",
"type": "number"
},
"workflowID": {
"description": "所属工作流ID",
"type": "integer"
}
}
},