diff --git a/app/hdl/hdl_comm.go b/app/hdl/hdl_comm.go index dbffc73..4880512 100644 --- a/app/hdl/hdl_comm.go +++ b/app/hdl/hdl_comm.go @@ -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") diff --git a/docs/docs.go b/docs/docs.go index ee4241c..047d5a8 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -61,7 +61,9 @@ const docTemplate = `{ } } } - }, + } + }, + "/api/comm/uploadFile": { "post": { "description": "公共模块-上传文件", "consumes": [ diff --git a/docs/swagger.json b/docs/swagger.json index 6972363..b0ccc7c 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -53,7 +53,9 @@ } } } - }, + } + }, + "/api/comm/uploadFile": { "post": { "description": "公共模块-上传文件", "consumes": [ diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 7f71f60..0694b33 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -518,6 +518,7 @@ paths: summary: 获取系统信息 tags: - 公共模块 + /api/comm/uploadFile: post: consumes: - multipart/form-data