| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operationType/operationType": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "查询作业类型列表", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "name": "keyword", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "页码", |
| | | "name": "page", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "每页大小", |
| | | "name": "pageSize", |
| | | "in": "query" |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/util.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.OperationType" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "添加作业类型", |
| | | "parameters": [ |
| | | { |
| | | "description": "作业类型信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AddOperationType" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operationType/operationType/{id}": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "编辑作业类型", |
| | | "parameters": [ |
| | | { |
| | | "description": "作业类型信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateOperationType" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "作业类型id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "删除作业类型", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "作业类型id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/addProduct": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/warehouse/operationType": { |
| | | "/api-wms/v1/warehouse/getWarehouseDetails/{id}": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | "仓库" |
| | | ], |
| | | "summary": "查询作业类型列表", |
| | | "summary": "获取仓库详情", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "name": "keyword", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "页码", |
| | | "name": "page", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "每页大小", |
| | | "name": "pageSize", |
| | | "in": "query" |
| | | "description": "仓库id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/util.ResponseList" |
| | | "$ref": "#/definitions/util.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.OperationType" |
| | | } |
| | | "$ref": "#/definitions/models.Warehouse" |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | "/api-wms/v1/warehouse/updateWarehouse": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | "仓库" |
| | | ], |
| | | "summary": "添加作业类型", |
| | | "summary": "编辑仓库", |
| | | "parameters": [ |
| | | { |
| | | "description": "作业类型信息", |
| | | "description": "仓库信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AddOperationType" |
| | | "$ref": "#/definitions/models.Warehouse" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/warehouse/operationType/{id}": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "编辑作业类型", |
| | | "parameters": [ |
| | | { |
| | | "description": "作业类型信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateOperationType" |
| | | } |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "作业类型id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | ], |
| | | "summary": "删除作业类型", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "作业类型id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | } |
| | | }, |
| | | "/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": "是否补充位置", |
| | |
| | | "type": "object", |
| | | "properties": { |
| | | "HSCode": { |
| | | "description": "HS编码", |
| | | "type": "string" |
| | | }, |
| | | "amount": { |
| | | "description": "数量", |
| | | "type": "number" |
| | | }, |
| | | "barcode": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "buyExplain": { |
| | | "description": "采购说明", |
| | | "type": "string" |
| | | }, |
| | | "canBePurchased": { |
| | |
| | | "description": "产品类别id", |
| | | "type": "integer" |
| | | }, |
| | | "categoryName": { |
| | | "description": "产品类别名称", |
| | | "type": "string" |
| | | }, |
| | | "companyId": { |
| | | "description": "公司id", |
| | | "type": "integer" |
| | | }, |
| | | "companyName": { |
| | | "description": "公司名称", |
| | | "type": "string" |
| | | }, |
| | | "controlStrategy": { |
| | | "$ref": "#/definitions/constvar.InvoicingStrategy" |
| | | "description": "控制策略", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.InvoicingStrategy" |
| | | } |
| | | ] |
| | | }, |
| | | "cost": { |
| | | "description": "成本", |
| | | "type": "number" |
| | | }, |
| | | "currencyName": { |
| | | "description": "币种名称", |
| | | "type": "string" |
| | | }, |
| | | "customerTaxes": { |
| | |
| | | "type": "number" |
| | | }, |
| | | "deliveryAdvanceTime": { |
| | | "description": "交货提前时间(天)", |
| | | "type": "integer" |
| | | }, |
| | | "id": { |
| | | "type": "string" |
| | | }, |
| | | "inStorageExplain": { |
| | | "description": "入库说明", |
| | | "type": "string" |
| | | }, |
| | | "internalNotes": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "internalTransferExplain": { |
| | | "description": "内部调拨说明", |
| | | "type": "string" |
| | | }, |
| | | "invoicingStrategy": { |
| | | "description": "wms添加字段", |
| | | "description": "开票策略", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.InvoicingStrategy" |
| | |
| | | "type": "boolean" |
| | | }, |
| | | "maxInventory": { |
| | | "description": "最大库存", |
| | | "type": "number" |
| | | }, |
| | | "minInventory": { |
| | |
| | | ] |
| | | }, |
| | | "name": { |
| | | "description": "物料名称", |
| | | "type": "string" |
| | | }, |
| | | "orderCreation": { |
| | | "$ref": "#/definitions/constvar.OrderCreation" |
| | | "description": "订单创建", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.OrderCreation" |
| | | } |
| | | ] |
| | | }, |
| | | "originCountryId": { |
| | | "description": "原产地id", |
| | | "type": "integer" |
| | | }, |
| | | "originCountryName": { |
| | | "description": "原产地名称", |
| | | "type": "string" |
| | | }, |
| | | "outStorageExplain": { |
| | | "description": "出库说明", |
| | | "type": "string" |
| | | }, |
| | | "principal": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "productTagId": { |
| | | "description": "产品标签", |
| | | "description": "产品标签id", |
| | | "type": "integer" |
| | | }, |
| | | "productTagName": { |
| | | "description": "产品标签名称", |
| | | "type": "string" |
| | | }, |
| | | "productType": { |
| | | "description": "wms添加字段", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.ProductType" |
| | | } |
| | | ] |
| | | }, |
| | | "purchasePrice": { |
| | | "description": "采购价格", |
| | | "type": "number" |
| | | }, |
| | | "salePrice": { |
| | | "description": "销售单价", |
| | | "type": "number" |
| | | }, |
| | | "selectProduct": { |
| | | "description": "可选产品id", |
| | | "type": "integer" |
| | | }, |
| | | "sellExplain": { |
| | | "description": "销售说明", |
| | | "type": "string" |
| | | }, |
| | | "supplier": { |
| | | "description": "FSource string ` + "`" + `gorm:\"type:varchar(191);comment:生产车间\" json:\"-\"` + "`" + `\nStatus constvar.MaterialStatus ` + "`" + `gorm:\"type:int(11);comment:状态\" json:\"status\"` + "`" + `", |
| | | "type": "string" |
| | | }, |
| | | "templateID": { |
| | | "description": "Note string ` + "`" + `gorm:\"type:varchar(1024);comment:备注\" json:\"note\"` + "`" + `", |
| | | "type": "string" |
| | | }, |
| | | "unit": { |
| | |
| | | "type": "integer" |
| | | }, |
| | | "routeId": { |
| | | "description": "路线id", |
| | | "type": "integer" |
| | | }, |
| | | "routeName": { |
| | |
| | | "active": { |
| | | "description": "是否启用,传true就行", |
| | | "type": "boolean" |
| | | }, |
| | | "address": { |
| | | "description": "地址", |
| | | "type": "string" |
| | | }, |
| | | "buyToResupply": { |
| | | "description": "是否购买补给,已购买产品能够发送到此仓库", |
| | |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "inboundTransportation": { |
| | | "description": "入向运输", |
| | | "type": "integer" |
| | | }, |
| | | "locationId": { |
| | | "description": "位置id", |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "仓库名称", |
| | | "type": "string" |
| | | }, |
| | | "outboundTransportation": { |
| | | "description": "出库运输", |
| | | "type": "integer" |
| | | }, |
| | | "partnerId": { |
| | | "description": "合作伙伴id", |
| | |
| | | } |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | }, |
| | | "warehouseLocation": { |
| | | "description": "库存位置", |
| | | "type": "string" |
| | | } |
| | | } |
| | |
| | | "description": "是否启用,传true就行", |
| | | "type": "boolean" |
| | | }, |
| | | "address": { |
| | | "description": "地址", |
| | | "type": "string" |
| | | }, |
| | | "buyToResupply": { |
| | | "description": "购买补给,已购买产品能够发送到此仓库", |
| | | "type": "boolean" |
| | |
| | | "maxLength": 5, |
| | | "minLength": 1 |
| | | }, |
| | | "inboundTransportation": { |
| | | "description": "入向运输", |
| | | "type": "integer" |
| | | }, |
| | | "locationId": { |
| | | "description": "位置id", |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "仓库名称", |
| | | "type": "string" |
| | | }, |
| | | "outboundTransportation": { |
| | | "description": "出库运输", |
| | | "type": "integer" |
| | | }, |
| | | "partnerId": { |
| | | "description": "合作伙伴id", |
| | |
| | | "warehouseId": { |
| | | "description": "仓库id", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateWarehouse": { |
| | | "type": "object", |
| | | "required": [ |
| | | "code" |
| | | ], |
| | | "properties": { |
| | | "active": { |
| | | "description": "是否启用,传true就行", |
| | | "type": "boolean" |
| | | }, |
| | | "buyToResupply": { |
| | | "description": "购买补给,已购买产品能够发送到此仓库", |
| | | "type": "boolean" |
| | | }, |
| | | "code": { |
| | | "description": "仓库编码", |
| | | "type": "string", |
| | | "maxLength": 5, |
| | | "minLength": 1 |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "description": "仓库名称", |
| | | "type": "string" |
| | | }, |
| | | "partnerId": { |
| | | "description": "合作伙伴id", |
| | | "type": "integer" |
| | | }, |
| | | "resupplyWhIds": { |
| | | "description": "补给来源仓库ID", |
| | | "type": "array", |
| | | "items": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | } |
| | | }, |