增加删除文件接口

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
+51 -5
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"
}
}
},
+50 -4
View File
@@ -488,6 +488,42 @@
}
}
},
"/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": [
@@ -1234,6 +1270,20 @@
}
}
},
"dbModel.FileUploadAndDownload": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"tag": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"dbModel.Workflow": {
"type": "object",
"properties": {
@@ -1280,10 +1330,6 @@
"stepNo": {
"description": "步骤id (第几步)",
"type": "number"
},
"workflowID": {
"description": "所属工作流ID",
"type": "integer"
}
}
},
+31 -3
View File
@@ -112,6 +112,15 @@ definitions:
title:
type: string
type: object
dbModel.FileUploadAndDownload:
properties:
name:
type: string
tag:
type: string
url:
type: string
type: object
dbModel.Workflow:
properties:
workflowDescription:
@@ -146,9 +155,6 @@ definitions:
stepNo:
description: 步骤id (第几步)
type: number
workflowID:
description: 所属工作流ID
type: integer
type: object
modelInterface.PageInfo:
properties:
@@ -460,6 +466,28 @@ paths:
summary: 用户注册账号
tags:
- Base
/fileUploadAndDownload/deleteFile:
post:
parameters:
- description: 传入文件里面id即可
in: body
name: data
required: true
schema:
$ref: '#/definitions/dbModel.FileUploadAndDownload'
type: object
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"返回成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 删除文件
tags:
- FileUploadAndDownload
/fileUploadAndDownload/getFileList:
post:
consumes: