| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/other/saveProductImagesFromExcel": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "其他" |
| | | ], |
| | | "summary": "从excel中获取产品图片并保存", |
| | | "parameters": [ |
| | | { |
| | | "description": "属性信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/controllers.saveProductImagesFromExcelRequest" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "token", |
| | | "name": "Authorization", |
| | | "in": "header", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/addDisuse": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | "WhetherTypeAlways", |
| | | "ReservationNever" |
| | | ] |
| | | }, |
| | | "controllers.saveProductImagesFromExcelRequest": { |
| | | "type": "object", |
| | | "properties": { |
| | | "excelFilePath": { |
| | | "description": "excel路径 用docker cp传到容器里", |
| | | "type": "string" |
| | | }, |
| | | "imageColumn": { |
| | | "description": "图片所在列名", |
| | | "type": "string" |
| | | }, |
| | | "productIdColumnIndex": { |
| | | "description": "产品ID是第几列(从0开始)", |
| | | "type": "integer" |
| | | }, |
| | | "sheetIndex": { |
| | | "description": "第几个sheet", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "gorm.DeletedAt": { |
| | | "type": "object", |
| | |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | }, |
| | | "warehouseCode": { |
| | | "description": "仓库缩写", |
| | | "type": "string" |
| | | "warehouseId": { |
| | | "description": "WarehouseCode string ` + "`" + `json:\"warehouseCode\"` + "`" + ` //仓库缩写", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "unit": { |
| | | "description": "单位", |
| | | "type": "string" |
| | | }, |
| | | "warehouseCode": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |