dengbiao 2 months ago
parent
commit
254a207b1b
4 changed files with 8 additions and 3 deletions
  1. +1
    -1
      app/hdl/hdl_comm.go
  2. +3
    -1
      docs/docs.go
  3. +3
    -1
      docs/swagger.json
  4. +1
    -0
      docs/swagger.yaml

+ 1
- 1
app/hdl/hdl_comm.go View File

@@ -141,7 +141,7 @@ func GetBaseInfo(c *gin.Context) {
// @Param file formData file true "上传的文件"
// @Success 200 {string} "success"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/comm/basicGet [POST]
// @Router /api/comm/uploadFile [POST]
func UploadFile(c *gin.Context) {
// 单文件上传
file, err := c.FormFile("file")


+ 3
- 1
docs/docs.go View File

@@ -61,7 +61,9 @@ const docTemplate = `{
}
}
}
},
}
},
"/api/comm/uploadFile": {
"post": {
"description": "公共模块-上传文件",
"consumes": [


+ 3
- 1
docs/swagger.json View File

@@ -53,7 +53,9 @@
}
}
}
},
}
},
"/api/comm/uploadFile": {
"post": {
"description": "公共模块-上传文件",
"consumes": [


+ 1
- 0
docs/swagger.yaml View File

@@ -518,6 +518,7 @@ paths:
summary: 获取系统信息
tags:
- 公共模块
/api/comm/uploadFile:
post:
consumes:
- multipart/form-data


Loading…
Cancel
Save