| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/addProduct": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "产品" |
| | | ], |
| | | "summary": "添加产品", |
| | | "parameters": [ |
| | | { |
| | | "description": "产品信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/models.Product" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/getProductList": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "产品" |
| | | ], |
| | | "summary": "获取产品详情", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.GetProductList" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/util.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.Product" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/warehouse/operationType": { |
| | | "get": { |
| | | "produces": [ |
| | |
| | | "BaseOperationTypeInternal" |
| | | ] |
| | | }, |
| | | "constvar.InvoicingStrategy": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 1, |
| | | 2, |
| | | 3, |
| | | 4, |
| | | 5 |
| | | ], |
| | | "x-enum-comments": { |
| | | "BasedDeliverNumber": "基于交付数量", |
| | | "DeliverNumber": "交付数量", |
| | | "IndentNumber": "订购数量", |
| | | "Milestones": "基于里程碑", |
| | | "PrepaidPrice": "预付\\固定价格" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "IndentNumber", |
| | | "DeliverNumber", |
| | | "PrepaidPrice", |
| | | "Milestones", |
| | | "BasedDeliverNumber" |
| | | ] |
| | | }, |
| | | "constvar.LocationType": { |
| | | "type": "integer", |
| | | "enum": [ |
| | |
| | | "OperationStatus_Waiting", |
| | | "OperationStatus_Ready", |
| | | "OperationStatus_Finish" |
| | | ] |
| | | }, |
| | | "constvar.OrderCreation": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 1, |
| | | 2, |
| | | 3, |
| | | 4 |
| | | ], |
| | | "x-enum-comments": { |
| | | "Nothing": "不操作", |
| | | "Object": "项目", |
| | | "Task": "任务", |
| | | "TaskAndObject": "任务和项目" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "Nothing", |
| | | "Task", |
| | | "Object", |
| | | "TaskAndObject" |
| | | ] |
| | | }, |
| | | "constvar.ProductType": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 1, |
| | | 2, |
| | | 3 |
| | | ], |
| | | "x-enum-comments": { |
| | | "Consumables": "消耗品", |
| | | "Server": "服务", |
| | | "StoredProduct": "可储存的产品" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "Consumables", |
| | | "Server", |
| | | "StoredProduct" |
| | | ] |
| | | }, |
| | | "constvar.ReservationMethod": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "models.Product": { |
| | | "type": "object", |
| | | "properties": { |
| | | "HSCode": { |
| | | "type": "string" |
| | | }, |
| | | "barcode": { |
| | | "description": "条码", |
| | | "type": "string" |
| | | }, |
| | | "buyExplain": { |
| | | "type": "string" |
| | | }, |
| | | "canBePurchased": { |
| | | "description": "是否可采购", |
| | | "type": "boolean" |
| | | }, |
| | | "canBeSell": { |
| | | "description": "是否销售", |
| | | "type": "boolean" |
| | | }, |
| | | "categoryId": { |
| | | "description": "产品分类id", |
| | | "type": "integer" |
| | | }, |
| | | "companyId": { |
| | | "type": "integer" |
| | | }, |
| | | "companyName": { |
| | | "type": "string" |
| | | }, |
| | | "controlStrategy": { |
| | | "$ref": "#/definitions/constvar.InvoicingStrategy" |
| | | }, |
| | | "cost": { |
| | | "description": "成本", |
| | | "type": "number" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "currencyId": { |
| | | "type": "integer" |
| | | }, |
| | | "currencyName": { |
| | | "type": "string" |
| | | }, |
| | | "customerAdvanceTime": { |
| | | "type": "number" |
| | | }, |
| | | "customerTaxes": { |
| | | "description": "客户税百分比", |
| | | "type": "number" |
| | | }, |
| | | "deliveryAdvanceTime": { |
| | | "type": "number" |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "inStorageExplain": { |
| | | "type": "string" |
| | | }, |
| | | "internalNotes": { |
| | | "description": "内部说明", |
| | | "type": "string" |
| | | }, |
| | | "internalReference": { |
| | | "description": "内部参考", |
| | | "type": "string" |
| | | }, |
| | | "internalTransferExplain": { |
| | | "type": "string" |
| | | }, |
| | | "invoicingStrategy": { |
| | | "$ref": "#/definitions/constvar.InvoicingStrategy" |
| | | }, |
| | | "name": { |
| | | "description": "产品名称", |
| | | "type": "string" |
| | | }, |
| | | "objectTemplateId": { |
| | | "type": "string" |
| | | }, |
| | | "orderCreation": { |
| | | "$ref": "#/definitions/constvar.OrderCreation" |
| | | }, |
| | | "originCountryId": { |
| | | "type": "integer" |
| | | }, |
| | | "originCountryName": { |
| | | "type": "string" |
| | | }, |
| | | "outStorageExplain": { |
| | | "type": "string" |
| | | }, |
| | | "price": { |
| | | "type": "number" |
| | | }, |
| | | "principal": { |
| | | "description": "负责人", |
| | | "type": "string" |
| | | }, |
| | | "productTagId": { |
| | | "description": "产品标签", |
| | | "type": "integer" |
| | | }, |
| | | "productTagName": { |
| | | "type": "string" |
| | | }, |
| | | "salePrice": { |
| | | "description": "销售价格", |
| | | "type": "number" |
| | | }, |
| | | "selectProduct": { |
| | | "type": "integer" |
| | | }, |
| | | "sellExplain": { |
| | | "type": "string" |
| | | }, |
| | | "supplierId": { |
| | | "type": "integer" |
| | | }, |
| | | "supplierName": { |
| | | "type": "string" |
| | | }, |
| | | "type": { |
| | | "description": "产品类型", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.ProductType" |
| | | } |
| | | ] |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | }, |
| | | "volume": { |
| | | "description": "体积", |
| | | "type": "number" |
| | | }, |
| | | "weight": { |
| | | "description": "重量", |
| | | "type": "number" |
| | | } |
| | | } |
| | | }, |
| | | "models.Warehouse": { |
| | | "type": "object", |
| | | "required": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.GetProductList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "keyWord": { |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | | }, |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "request.OperationDetails": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | Description: "", |
| | | InfoInstanceName: "swagger", |
| | | SwaggerTemplate: docTemplate, |
| | | LeftDelim: "{{", |
| | | RightDelim: "}}", |
| | | } |
| | | |
| | | func init() { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/addProduct": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "产品" |
| | | ], |
| | | "summary": "添加产品", |
| | | "parameters": [ |
| | | { |
| | | "description": "产品信息", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/models.Product" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/getProductList": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "产品" |
| | | ], |
| | | "summary": "获取产品详情", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.GetProductList" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/util.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.Product" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/warehouse/operationType": { |
| | | "get": { |
| | | "produces": [ |
| | |
| | | "BaseOperationTypeInternal" |
| | | ] |
| | | }, |
| | | "constvar.InvoicingStrategy": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 1, |
| | | 2, |
| | | 3, |
| | | 4, |
| | | 5 |
| | | ], |
| | | "x-enum-comments": { |
| | | "BasedDeliverNumber": "基于交付数量", |
| | | "DeliverNumber": "交付数量", |
| | | "IndentNumber": "订购数量", |
| | | "Milestones": "基于里程碑", |
| | | "PrepaidPrice": "预付\\固定价格" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "IndentNumber", |
| | | "DeliverNumber", |
| | | "PrepaidPrice", |
| | | "Milestones", |
| | | "BasedDeliverNumber" |
| | | ] |
| | | }, |
| | | "constvar.LocationType": { |
| | | "type": "integer", |
| | | "enum": [ |
| | |
| | | "OperationStatus_Waiting", |
| | | "OperationStatus_Ready", |
| | | "OperationStatus_Finish" |
| | | ] |
| | | }, |
| | | "constvar.OrderCreation": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 1, |
| | | 2, |
| | | 3, |
| | | 4 |
| | | ], |
| | | "x-enum-comments": { |
| | | "Nothing": "不操作", |
| | | "Object": "项目", |
| | | "Task": "任务", |
| | | "TaskAndObject": "任务和项目" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "Nothing", |
| | | "Task", |
| | | "Object", |
| | | "TaskAndObject" |
| | | ] |
| | | }, |
| | | "constvar.ProductType": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | 1, |
| | | 2, |
| | | 3 |
| | | ], |
| | | "x-enum-comments": { |
| | | "Consumables": "消耗品", |
| | | "Server": "服务", |
| | | "StoredProduct": "可储存的产品" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "Consumables", |
| | | "Server", |
| | | "StoredProduct" |
| | | ] |
| | | }, |
| | | "constvar.ReservationMethod": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "models.Product": { |
| | | "type": "object", |
| | | "properties": { |
| | | "HSCode": { |
| | | "type": "string" |
| | | }, |
| | | "barcode": { |
| | | "description": "条码", |
| | | "type": "string" |
| | | }, |
| | | "buyExplain": { |
| | | "type": "string" |
| | | }, |
| | | "canBePurchased": { |
| | | "description": "是否可采购", |
| | | "type": "boolean" |
| | | }, |
| | | "canBeSell": { |
| | | "description": "是否销售", |
| | | "type": "boolean" |
| | | }, |
| | | "categoryId": { |
| | | "description": "产品分类id", |
| | | "type": "integer" |
| | | }, |
| | | "companyId": { |
| | | "type": "integer" |
| | | }, |
| | | "companyName": { |
| | | "type": "string" |
| | | }, |
| | | "controlStrategy": { |
| | | "$ref": "#/definitions/constvar.InvoicingStrategy" |
| | | }, |
| | | "cost": { |
| | | "description": "成本", |
| | | "type": "number" |
| | | }, |
| | | "createTime": { |
| | | "type": "string" |
| | | }, |
| | | "currencyId": { |
| | | "type": "integer" |
| | | }, |
| | | "currencyName": { |
| | | "type": "string" |
| | | }, |
| | | "customerAdvanceTime": { |
| | | "type": "number" |
| | | }, |
| | | "customerTaxes": { |
| | | "description": "客户税百分比", |
| | | "type": "number" |
| | | }, |
| | | "deliveryAdvanceTime": { |
| | | "type": "number" |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "inStorageExplain": { |
| | | "type": "string" |
| | | }, |
| | | "internalNotes": { |
| | | "description": "内部说明", |
| | | "type": "string" |
| | | }, |
| | | "internalReference": { |
| | | "description": "内部参考", |
| | | "type": "string" |
| | | }, |
| | | "internalTransferExplain": { |
| | | "type": "string" |
| | | }, |
| | | "invoicingStrategy": { |
| | | "$ref": "#/definitions/constvar.InvoicingStrategy" |
| | | }, |
| | | "name": { |
| | | "description": "产品名称", |
| | | "type": "string" |
| | | }, |
| | | "objectTemplateId": { |
| | | "type": "string" |
| | | }, |
| | | "orderCreation": { |
| | | "$ref": "#/definitions/constvar.OrderCreation" |
| | | }, |
| | | "originCountryId": { |
| | | "type": "integer" |
| | | }, |
| | | "originCountryName": { |
| | | "type": "string" |
| | | }, |
| | | "outStorageExplain": { |
| | | "type": "string" |
| | | }, |
| | | "price": { |
| | | "type": "number" |
| | | }, |
| | | "principal": { |
| | | "description": "负责人", |
| | | "type": "string" |
| | | }, |
| | | "productTagId": { |
| | | "description": "产品标签", |
| | | "type": "integer" |
| | | }, |
| | | "productTagName": { |
| | | "type": "string" |
| | | }, |
| | | "salePrice": { |
| | | "description": "销售价格", |
| | | "type": "number" |
| | | }, |
| | | "selectProduct": { |
| | | "type": "integer" |
| | | }, |
| | | "sellExplain": { |
| | | "type": "string" |
| | | }, |
| | | "supplierId": { |
| | | "type": "integer" |
| | | }, |
| | | "supplierName": { |
| | | "type": "string" |
| | | }, |
| | | "type": { |
| | | "description": "产品类型", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.ProductType" |
| | | } |
| | | ] |
| | | }, |
| | | "updateTime": { |
| | | "type": "string" |
| | | }, |
| | | "volume": { |
| | | "description": "体积", |
| | | "type": "number" |
| | | }, |
| | | "weight": { |
| | | "description": "重量", |
| | | "type": "number" |
| | | } |
| | | } |
| | | }, |
| | | "models.Warehouse": { |
| | | "type": "object", |
| | | "required": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.GetProductList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "keyWord": { |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | | }, |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "request.OperationDetails": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | - BaseOperationTypeIncoming |
| | | - BaseOperationTypeOutgoing |
| | | - BaseOperationTypeInternal |
| | | constvar.InvoicingStrategy: |
| | | enum: |
| | | - 1 |
| | | - 2 |
| | | - 3 |
| | | - 4 |
| | | - 5 |
| | | type: integer |
| | | x-enum-comments: |
| | | BasedDeliverNumber: 基于交付数量 |
| | | DeliverNumber: 交付数量 |
| | | IndentNumber: 订购数量 |
| | | Milestones: 基于里程碑 |
| | | PrepaidPrice: 预付\固定价格 |
| | | x-enum-varnames: |
| | | - IndentNumber |
| | | - DeliverNumber |
| | | - PrepaidPrice |
| | | - Milestones |
| | | - BasedDeliverNumber |
| | | constvar.LocationType: |
| | | enum: |
| | | - 1 |
| | |
| | | - OperationStatus_Waiting |
| | | - OperationStatus_Ready |
| | | - OperationStatus_Finish |
| | | constvar.OrderCreation: |
| | | enum: |
| | | - 1 |
| | | - 2 |
| | | - 3 |
| | | - 4 |
| | | type: integer |
| | | x-enum-comments: |
| | | Nothing: 不操作 |
| | | Object: 项目 |
| | | Task: 任务 |
| | | TaskAndObject: 任务和项目 |
| | | x-enum-varnames: |
| | | - Nothing |
| | | - Task |
| | | - Object |
| | | - TaskAndObject |
| | | constvar.ProductType: |
| | | enum: |
| | | - 1 |
| | | - 2 |
| | | - 3 |
| | | type: integer |
| | | x-enum-comments: |
| | | Consumables: 消耗品 |
| | | Server: 服务 |
| | | StoredProduct: 可储存的产品 |
| | | x-enum-varnames: |
| | | - Consumables |
| | | - Server |
| | | - StoredProduct |
| | | constvar.ReservationMethod: |
| | | enum: |
| | | - 1 |
| | |
| | | description: 仓库id |
| | | type: integer |
| | | type: object |
| | | models.Product: |
| | | properties: |
| | | HSCode: |
| | | type: string |
| | | barcode: |
| | | description: 条码 |
| | | type: string |
| | | buyExplain: |
| | | type: string |
| | | canBePurchased: |
| | | description: 是否可采购 |
| | | type: boolean |
| | | canBeSell: |
| | | description: 是否销售 |
| | | type: boolean |
| | | categoryId: |
| | | description: 产品分类id |
| | | type: integer |
| | | companyId: |
| | | type: integer |
| | | companyName: |
| | | type: string |
| | | controlStrategy: |
| | | $ref: '#/definitions/constvar.InvoicingStrategy' |
| | | cost: |
| | | description: 成本 |
| | | type: number |
| | | createTime: |
| | | type: string |
| | | currencyId: |
| | | type: integer |
| | | currencyName: |
| | | type: string |
| | | customerAdvanceTime: |
| | | type: number |
| | | customerTaxes: |
| | | description: 客户税百分比 |
| | | type: number |
| | | deliveryAdvanceTime: |
| | | type: number |
| | | id: |
| | | type: integer |
| | | inStorageExplain: |
| | | type: string |
| | | internalNotes: |
| | | description: 内部说明 |
| | | type: string |
| | | internalReference: |
| | | description: 内部参考 |
| | | type: string |
| | | internalTransferExplain: |
| | | type: string |
| | | invoicingStrategy: |
| | | $ref: '#/definitions/constvar.InvoicingStrategy' |
| | | name: |
| | | description: 产品名称 |
| | | type: string |
| | | objectTemplateId: |
| | | type: string |
| | | orderCreation: |
| | | $ref: '#/definitions/constvar.OrderCreation' |
| | | originCountryId: |
| | | type: integer |
| | | originCountryName: |
| | | type: string |
| | | outStorageExplain: |
| | | type: string |
| | | price: |
| | | type: number |
| | | principal: |
| | | description: 负责人 |
| | | type: string |
| | | productTagId: |
| | | description: 产品标签 |
| | | type: integer |
| | | productTagName: |
| | | type: string |
| | | salePrice: |
| | | description: 销售价格 |
| | | type: number |
| | | selectProduct: |
| | | type: integer |
| | | sellExplain: |
| | | type: string |
| | | supplierId: |
| | | type: integer |
| | | supplierName: |
| | | type: string |
| | | type: |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.ProductType' |
| | | description: 产品类型 |
| | | updateTime: |
| | | type: string |
| | | volume: |
| | | description: 体积 |
| | | type: number |
| | | weight: |
| | | description: 重量 |
| | | type: number |
| | | type: object |
| | | models.Warehouse: |
| | | properties: |
| | | active: |
| | |
| | | type: array |
| | | required: |
| | | - code |
| | | type: object |
| | | request.GetProductList: |
| | | properties: |
| | | keyWord: |
| | | type: string |
| | | page: |
| | | description: 页码 |
| | | type: integer |
| | | pageSize: |
| | | description: 每页大小 |
| | | type: integer |
| | | type: object |
| | | request.OperationDetails: |
| | | properties: |
| | |
| | | summary: 添加入库/出库 |
| | | tags: |
| | | - 入库/出库 |
| | | /api-wms/v1/product/addProduct: |
| | | post: |
| | | parameters: |
| | | - description: 产品信息 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/models.Product' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 添加产品 |
| | | tags: |
| | | - 产品 |
| | | /api-wms/v1/product/getProductList: |
| | | post: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.GetProductList' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/util.ResponseList' |
| | | - properties: |
| | | data: |
| | | items: |
| | | $ref: '#/definitions/models.Product' |
| | | type: array |
| | | type: object |
| | | summary: 获取产品详情 |
| | | tags: |
| | | - 产品 |
| | | /api-wms/v1/warehouse/operationType: |
| | | get: |
| | | parameters: |