| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/location/getLocationTreeList": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "位置" |
| | | ], |
| | | "summary": "获取位置列表树", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/util.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.Location" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/location/updateLocation": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | "ReservationMethodByDate" |
| | | ] |
| | | }, |
| | | "constvar.RuleType": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 1, |
| | | 2 |
| | | ], |
| | | "x-enum-comments": { |
| | | "RuleType_Product": "产品上架规则", |
| | | "RuleType_ProductCategory": "产品类别上架规则" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "RuleType_Product", |
| | | "RuleType_ProductCategory" |
| | | ] |
| | | }, |
| | | "constvar.WhetherType": { |
| | | "type": "integer", |
| | | "enum": [ |
| | |
| | | "models.Location": { |
| | | "type": "object", |
| | | "properties": { |
| | | "children": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.Location" |
| | | } |
| | | }, |
| | | "companyId": { |
| | | "description": "公司id", |
| | | "type": "integer" |
| | |
| | | "productId": { |
| | | "description": "产品id", |
| | | "type": "string" |
| | | }, |
| | | "ruleType": { |
| | | "description": "上架规则类型 1:产品类型;2:产品类别类型", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.RuleType" |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | |
| | | "keyWord": { |
| | | "type": "string" |
| | | }, |
| | | "locationId": { |
| | | "type": "integer" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | }, |
| | | "type": { |
| | | "description": "类型:bh=补货", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "productId": { |
| | | "description": "产品id", |
| | | "type": "string" |
| | | }, |
| | | "ruleType": { |
| | | "description": "上架规则类型 1:产品类型;2:产品类别类型", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.RuleType" |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |