增加了文件删除功能和前端日期格式化功能

This commit is contained in:
pixel
2019-11-24 11:13:55 +08:00
parent ccb7e88293
commit 0499355a39
6 changed files with 72 additions and 8 deletions

View File

@@ -62,7 +62,7 @@ func DeleteFile(c *gin.Context) {
if err != nil {
servers.ReportFormat(c, false, fmt.Sprintf("删除失败,%v", err), gin.H{})
} else {
err = file.DeleteFile()
err = f.DeleteFile()
if err != nil {
servers.ReportFormat(c, false, fmt.Sprintf("删除失败,%v", err), gin.H{})
} else {

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 16:37:42.2606856 +0800 CST m=+0.064825001
// 2019-11-20 16:59:15.3568689 +0800 CST m=+0.056920101
package docs
@@ -1290,6 +1290,9 @@ var doc = `{
"dbModel.FileUploadAndDownload": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
},

View File

@@ -1273,6 +1273,9 @@
"dbModel.FileUploadAndDownload": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
},

View File

@@ -114,6 +114,8 @@ definitions:
type: object
dbModel.FileUploadAndDownload:
properties:
key:
type: string
name:
type: string
tag: