| | |
| | | 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()) |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/attachment/uploadFiles": { |
| | | "post": { |
| | | "tags": [ |
| | | "附件管理" |
| | | ], |
| | | "summary": "上传附件", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/company/company": { |
| | | "get": { |
| | | "produces": [ |
| | |
| | | Description: "", |
| | | InfoInstanceName: "swagger", |
| | | SwaggerTemplate: docTemplate, |
| | | LeftDelim: "{{", |
| | | RightDelim: "}}", |
| | | } |
| | | |
| | | func init() { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/attachment/uploadFiles": { |
| | | "post": { |
| | | "tags": [ |
| | | "附件管理" |
| | | ], |
| | | "summary": "上传附件", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/company/company": { |
| | | "get": { |
| | | "produces": [ |
| | |
| | | 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: |