dengbiao 2 meses atrás
pai
commit
254a207b1b
4 arquivos alterados com 8 adições e 3 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

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


+ 3
- 1
docs/swagger.json Ver arquivo

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


+ 1
- 0
docs/swagger.yaml Ver arquivo

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


Carregando…
Cancelar
Salvar