jiangshuai
2023-11-08 a69047e1891ef7a3ac9b1dea1c2889c81b29fa22
修改缩略图尺寸
4个文件已修改
46 ■■■■■ 已修改文件
controllers/attachment.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/attachment.go
@@ -73,7 +73,7 @@
        attachmentList = append(attachmentList, attachment)
        if fileType == constvar.FileType_Picture {
            thumbnailBytes, err := image.CreateThumbnail(fileBytes, 0, 600, 800)
            thumbnailBytes, err := image.CreateThumbnail(fileBytes, 60, 0, 0)
            if err != nil {
                logx.Errorf("file upload err: %v", err)
                util.ResponseFormat(c, code.RequestParamError, "生成缩略图失败:"+err.Error())
docs/docs.go
@@ -150,6 +150,22 @@
                }
            }
        },
        "/api-wms/v1/attachment/uploadFiles": {
            "post": {
                "tags": [
                    "附件管理"
                ],
                "summary": "上传附件",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/company/company": {
            "get": {
                "produces": [
@@ -4138,8 +4154,6 @@
    Description:      "",
    InfoInstanceName: "swagger",
    SwaggerTemplate:  docTemplate,
    LeftDelim:        "{{",
    RightDelim:       "}}",
}
func init() {
docs/swagger.json
@@ -138,6 +138,22 @@
                }
            }
        },
        "/api-wms/v1/attachment/uploadFiles": {
            "post": {
                "tags": [
                    "附件管理"
                ],
                "summary": "上传附件",
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/company/company": {
            "get": {
                "produces": [
docs/swagger.yaml
@@ -1474,6 +1474,16 @@
      summary: 编辑部门信息
      tags:
      - 部门信息
  /api-wms/v1/attachment/uploadFiles:
    post:
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 上传附件
      tags:
      - 附件管理
  /api-wms/v1/company/company:
    get:
      parameters: