| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/warehouse/getWarehouseDetails/{id}": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "仓库" |
| | | ], |
| | | "summary": "获取仓库详情", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "仓库id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/util.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/models.Warehouse" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/warehouse/updateWarehouse": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "仓库" |
| | | ], |
| | | "summary": "编辑仓库", |
| | | "parameters": [ |
| | | { |
| | | "description": "仓库信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/models.Warehouse" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/warehouse/warehouse": { |
| | | "get": { |
| | | "produces": [ |
| | |
| | | } |
| | | }, |
| | | "/api-wms/v1/warehouse/warehouse/{id}": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "仓库" |
| | | ], |
| | | "summary": "编辑仓库", |
| | | "parameters": [ |
| | | { |
| | | "description": "仓库信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateWarehouse" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "仓库id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | |
| | | "TaskAndObject" |
| | | ] |
| | | }, |
| | | "constvar.ProductType": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 1, |
| | | 2, |
| | | 3 |
| | | ], |
| | | "x-enum-comments": { |
| | | "Consumables": "消耗品", |
| | | "Server": "服务", |
| | | "StoredProduct": "可储存的产品" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "Consumables", |
| | | "Server", |
| | | "StoredProduct" |
| | | ] |
| | | }, |
| | | "constvar.ReservationMethod": { |
| | | "type": "integer", |
| | | "enum": [ |
| | |
| | | }, |
| | | "parentId": { |
| | | "description": "上级id", |
| | | "type": "integer" |
| | | "type": "string" |
| | | }, |
| | | "replenishLocation": { |
| | | "description": "是否补充位置", |
| | |
| | | "categoryId": { |
| | | "description": "产品类别id", |
| | | "type": "integer" |
| | | }, |
| | | "categoryName": { |
| | | "description": "产品类别名称", |
| | | "type": "string" |
| | | }, |
| | | "companyId": { |
| | | "description": "公司id", |
| | |
| | | "type": "string" |
| | | }, |
| | | "invoicingStrategy": { |
| | | "description": "wms添加字段", |
| | | "description": "开票策略", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.InvoicingStrategy" |
| | |
| | | "productTagName": { |
| | | "description": "产品标签名称", |
| | | "type": "string" |
| | | }, |
| | | "productType": { |
| | | "description": "wms添加字段", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.ProductType" |
| | | } |
| | | ] |
| | | }, |
| | | "purchasePrice": { |
| | | "description": "采购价格", |
| | |
| | | "description": "入向运输", |
| | | "type": "integer" |
| | | }, |
| | | "locationId": { |
| | | "description": "位置id", |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "仓库名称", |
| | | "type": "string" |
| | |
| | | } |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | }, |
| | | "warehouseLocation": { |
| | | "description": "库存位置", |
| | | "type": "string" |
| | | } |
| | | } |
| | |
| | | }, |
| | | "inboundTransportation": { |
| | | "description": "入向运输", |
| | | "type": "integer" |
| | | }, |
| | | "locationId": { |
| | | "description": "位置id", |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | |
| | | "warehouseId": { |
| | | "description": "仓库id", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateWarehouse": { |
| | | "type": "object", |
| | | "required": [ |
| | | "code" |
| | | ], |
| | | "properties": { |
| | | "active": { |
| | | "description": "是否启用,传true就行", |
| | | "type": "boolean" |
| | | }, |
| | | "address": { |
| | | "description": "地址", |
| | | "type": "string" |
| | | }, |
| | | "buyToResupply": { |
| | | "description": "购买补给,已购买产品能够发送到此仓库", |
| | | "type": "boolean" |
| | | }, |
| | | "code": { |
| | | "description": "仓库编码", |
| | | "type": "string", |
| | | "maxLength": 5, |
| | | "minLength": 1 |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "inboundTransportation": { |
| | | "description": "入向运输", |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "仓库名称", |
| | | "type": "string" |
| | | }, |
| | | "outboundTransportation": { |
| | | "description": "出库运输", |
| | | "type": "integer" |
| | | }, |
| | | "partnerId": { |
| | | "description": "合作伙伴id", |
| | | "type": "integer" |
| | | }, |
| | | "resupplyWhIds": { |
| | | "description": "补给来源仓库ID", |
| | | "type": "array", |
| | | "items": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | } |
| | | }, |