definitions: constvar.BaseOperationType: enum: - 1 - 2 - 3 type: integer x-enum-comments: BaseOperationTypeIncoming: 收货 BaseOperationTypeInternal: 内部调拨 BaseOperationTypeOutgoing: 交货 x-enum-varnames: - BaseOperationTypeIncoming - BaseOperationTypeOutgoing - BaseOperationTypeInternal constvar.CostingMethod: enum: - 1 - 2 - 3 type: integer x-enum-comments: CostingMethodAverageCost: 平均成本 CostingMethodFIFO: 先进先出 CostingMethodStandardPrice: 标准价格 x-enum-varnames: - CostingMethodStandardPrice - CostingMethodFIFO - CostingMethodAverageCost constvar.ForceRemovalStrategy: enum: - 1 - 2 - 3 type: integer x-enum-varnames: - ForceRemovalStrategyFIFO - ForceRemovalStrategyLIFO - ForceRemovalStrategyClosestLocation constvar.InventoryValuation: enum: - 1 - 2 type: integer x-enum-comments: InventoryValuationAuto: 自动 InventoryValuationManual: 手动 x-enum-varnames: - InventoryValuationManual - InventoryValuationAuto 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 - 2 - 3 - 4 - 5 - 6 - 7 type: integer x-enum-comments: LocationTypeCustomer: 客户位置 LocationTypeInternal: 内部位置 LocationTypeInventoryLoss: 库存损失 LocationTypeProduction: 生产 LocationTypeTransit: 中转位置 LocationTypeVendor: 供应商位置 LocationTypeView: 视图 x-enum-varnames: - LocationTypeVendor - LocationTypeView - LocationTypeInternal - LocationTypeCustomer - LocationTypeInventoryLoss - LocationTypeProduction - LocationTypeTransit constvar.MaterialMode: enum: - 原材料 - 半成品 - 成品 type: string x-enum-varnames: - MaterialModeRaw - MaterialModeSemi - MaterialModeFinished constvar.OperationStatus: enum: - 1 - 2 - 3 - 4 type: integer x-enum-comments: OperationStatus_Draft: 草稿 OperationStatus_Finish: 完成 OperationStatus_Ready: 就绪 OperationStatus_Waiting: 正在等待 x-enum-varnames: - OperationStatus_Draft - 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 - 2 - 3 type: integer x-enum-comments: ReservationMethodAtConfirm: 在确认时 ReservationMethodByDate: 在预定日期之前 ReservationMethodManual: 手动 x-enum-varnames: - ReservationMethodAtConfirm - ReservationMethodManual - ReservationMethodByDate constvar.WhetherType: enum: - 1 - 2 - 3 type: integer x-enum-comments: ReservationNever: 从不 WhetherTypeAlways: 总是 WhetherTypeAsk: 询问 x-enum-varnames: - WhetherTypeAsk - WhetherTypeAlways - ReservationNever models.Company: properties: createTime: type: string id: type: integer name: description: 公司名称 type: string updateTime: type: string type: object models.Department: properties: children: items: $ref: '#/definitions/models.Department' type: array head: description: 部门负责人 type: string id: type: integer name: description: 部门名称 type: string number: description: 部门编号 type: string parentId: description: 上级部门ID type: integer remark: description: 备注 type: string sort: description: 排序 type: integer type: object models.Location: properties: companyId: description: 公司id type: integer countFrequency: description: 盘点频率(天) type: integer createTime: type: string forceRemovalStrategy: allOf: - $ref: '#/definitions/constvar.ForceRemovalStrategy' description: 下架策略 id: type: integer isReturnLocation: description: 是否退货位置 type: boolean isScrapLocation: description: 是否报废位置 type: boolean name: description: 位置名称 type: string nextCount: description: 下次盘点 type: string notes: description: 外部备注 type: string parentId: description: 上级id type: string recentlyCount: description: 最近盘点 type: string replenishLocation: description: 是否补充位置 type: boolean type: allOf: - $ref: '#/definitions/constvar.LocationType' description: Company Company `json:"company" gorm:"foreignKey:CompanyId"` //公司 updateTime: type: string type: object models.Material: properties: amount: description: 数量 type: number barcode: description: 条码 type: string buyExplain: description: 采购说明 type: string canBePurchased: description: 是否可采购 type: boolean categoryId: description: 产品类别id type: integer categoryName: description: 产品类别名称 type: string companyId: description: 公司id type: integer companyName: description: 公司名称 type: string controlStrategy: allOf: - $ref: '#/definitions/constvar.InvoicingStrategy' description: 控制策略 cost: description: 成本 type: number currencyName: description: 币种名称 type: string customerTaxes: description: 客户税百分比 type: number deliveryAdvanceTime: description: 客户前置时间(天) type: number id: type: string inStorageExplain: description: |- HSCode string `gorm:"type:varchar(255);comment:HS编码" json:"HSCode"` //HS编码 OriginCountryId int `gorm:"type:int(11);comment:原产地id" json:"originCountryId"` //原产地id OriginCountryName string `gorm:"type:varchar(255);comment:原产地名称" json:"originCountryName"` //原产地名称 type: string internalNotes: description: 内部说明 type: string internalReference: description: 内部参考 type: string internalTransferExplain: description: 内部调拨说明 type: string invoicingStrategy: allOf: - $ref: '#/definitions/constvar.InvoicingStrategy' description: 开票策略 isSale: description: PurchaseType constvar.PurchaseType `gorm:"type:int(11);comment:采购类型" json:"purchaseType"` type: boolean makeAdvanceTime: description: 制造前置时间(天) type: number maxInventory: description: 最大库存 type: number minInventory: description: |- Explain string `gorm:"type:varchar(512);comment:编号说明" json:"explain"` CodeStandardID string `gorm:"type:varchar(191);comment:编码规范ID" json:"codeStandardID"` Specs string `gorm:"type:varchar(191);comment:物料规格" json:"specs"` Type string `gorm:"type:varchar(191);comment:物料型号" json:"type"` type: number minPurchaseAmount: description: |- PurchaseAheadDay int `gorm:"type:int(11);comment:采购提前期(天)" json:"purchaseAheadDay"` ProduceAheadDay int `gorm:"type:int(11);comment:制造提前期(天)" json:"produceAheadDay"` type: number model: allOf: - $ref: '#/definitions/constvar.MaterialMode' description: MaterialType constvar.ProductType `gorm:"index;type:int(11);comment:物料类型(数字)" json:"materialType"` name: description: 物料名称 type: string orderAdvanceTime: description: 订单准备天数(天) type: number orderCreation: allOf: - $ref: '#/definitions/constvar.OrderCreation' description: 订单创建 outStorageExplain: description: 出库说明 type: string principal: description: 负责人 type: string productTagId: description: 产品标签id type: integer productTagName: description: 产品标签名称 type: string productType: allOf: - $ref: '#/definitions/constvar.ProductType' description: wms添加字段 purchasePrice: description: 采购价格 type: number salePrice: description: 销售单价 type: number selectProduct: description: 可选产品id type: string sellExplain: description: 销售说明 type: string supplier: description: |- FSource string `gorm:"type:varchar(191);comment:生产车间" json:"-"` Status 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: description: LockAmount decimal.Decimal `gorm:"type:decimal(35,18);default:0;comment:锁定数量" json:"lockAmount"` type: string volume: description: 体积 type: number weight: description: 重量 type: number type: object models.OperationType: properties: ReservationDaysBeforePriority: description: 在优先级的前几天 type: integer baseOperationType: allOf: - $ref: '#/definitions/constvar.BaseOperationType' description: 基础作业类型 company: allOf: - $ref: '#/definitions/models.Company' description: 公司 companyId: description: 公司id type: integer createBackorder: allOf: - $ref: '#/definitions/constvar.WhetherType' description: 创建欠单 createTime: type: string defaultLocationDest: allOf: - $ref: '#/definitions/models.Location' description: 默认目标位置 defaultLocationDestId: description: 默认目标位置id type: integer defaultLocationSrc: allOf: - $ref: '#/definitions/models.Location' description: 默认源位置 defaultLocationSrcId: description: 默认源位置id type: integer earlyOperations: description: 预填写作业详情 type: boolean id: type: integer name: description: 仓库名称 type: string prefix: description: 前缀 type: string printLabel: description: 是否打印标签 type: boolean reservationDaysBefore: description: 收货前几天 type: integer reservationMethod: allOf: - $ref: '#/definitions/constvar.ReservationMethod' description: 保留方式 returnOperationType: description: 退货类型名称 type: string returnOperationTypeID: description: 退货类型ID type: integer showOperations: description: 显示作业详情 type: boolean updateTime: type: string warehouse: allOf: - $ref: '#/definitions/models.Warehouse' description: 仓库 warehouseId: description: 仓库id type: integer type: object models.ProductCategory: properties: costingMethod: allOf: - $ref: '#/definitions/constvar.CostingMethod' description: 成本方法 forceRemovalStrategy: allOf: - $ref: '#/definitions/constvar.ForceRemovalStrategy' description: 强制下架策略 id: type: integer inventoryValuation: allOf: - $ref: '#/definitions/constvar.InventoryValuation' description: 库存计价 name: description: 位置名称 type: string parentId: description: 上级id type: integer routeId: description: 路线id type: integer routeName: description: 公司 type: string type: object models.Warehouse: properties: active: description: 是否启用,传true就行 type: boolean address: description: 地址 type: string buyToResupply: description: 是否购买补给,已购买产品能够发送到此仓库 type: boolean code: description: 仓库编码 maxLength: 5 minLength: 1 type: string company: $ref: '#/definitions/models.Company' companyId: type: integer createTime: type: string id: type: integer inboundTransportation: description: 入向运输 type: integer locationId: description: 位置id type: integer name: description: 仓库名称 type: string outboundTransportation: description: 出库运输 type: integer partnerId: description: 合作伙伴id type: integer resupplyWh: description: 补给来源仓库 items: $ref: '#/definitions/models.Warehouse' type: array resupplyWhIds: description: 补给来源仓库ID items: type: string type: array updateTime: type: string warehouseLocation: description: 库存位置 type: string required: - code type: object request.AddCompany: properties: name: description: 公司名称 type: string type: object request.AddDepartment: properties: name: description: 部门名称 type: string number: description: 部门编号 type: string parentId: description: 上级部门ID 一级部门传0 type: integer remark: description: 备注 type: string type: object request.AddOperation: properties: comment: description: 备注 type: string companyID: description: 公司ID-客户 type: integer companyName: description: 公司名称-客户名称 type: string contacterID: description: 联系人ID-非必填 type: integer contacterName: description: 联系人姓名-非必填 type: string details: items: $ref: '#/definitions/request.OperationDetails' type: array fromLocationId: description: 源位置id type: integer id: type: integer number: description: 单号 type: string operationDate: description: 安排日期 type: string operationTypeId: description: 作业类型id type: integer operationTypeName: description: 作业类型名称 type: string sourceNumber: description: 源单号 type: string status: allOf: - $ref: '#/definitions/constvar.OperationStatus' description: 状态 toLocationId: description: 目标位置id type: integer type: object request.AddOperationType: properties: ReservationDaysBeforePriority: description: 在优先级的前几天 type: integer baseOperationType: allOf: - $ref: '#/definitions/constvar.BaseOperationType' description: 基础作业类型 companyId: description: 公司id type: integer createBackorder: allOf: - $ref: '#/definitions/constvar.WhetherType' description: 创建欠单 defaultLocationDestId: description: 默认目标位置id type: integer defaultLocationSrcId: description: 默认源位置id type: integer id: type: integer name: description: 仓库名称 type: string printLabel: description: 是否打印标签 type: boolean reservationDaysBefore: description: 收货前几天 type: integer reservationMethod: allOf: - $ref: '#/definitions/constvar.ReservationMethod' description: 保留方式 returnOperationTypeID: description: 退货类型ID type: integer showOperations: description: 显示作业详情 type: boolean warehouseId: description: 仓库id type: integer type: object request.AddWarehouse: properties: active: description: 是否启用,传true就行 type: boolean address: description: 地址 type: string buyToResupply: description: 购买补给,已购买产品能够发送到此仓库 type: boolean code: description: 仓库编码 maxLength: 5 minLength: 1 type: string inboundTransportation: description: 入向运输 type: integer locationId: description: 位置id type: integer name: description: 仓库名称 type: string outboundTransportation: description: 出库运输 type: integer partnerId: description: 合作伙伴id type: integer resupplyWhIds: description: 补给来源仓库ID items: type: string 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: OperationId: description: 操作id type: integer amount: description: 数量 type: number productId: description: 产品id type: string productName: description: 产品名称 type: string unit: type: string type: object request.UpdateCompany: properties: id: type: integer name: description: 公司名称 type: string type: object request.UpdateDepartment: properties: id: type: integer name: description: 部门名称 type: string number: description: 部门编号 type: string parentId: description: 上级部门ID 一级部门传0 type: integer remark: description: 备注 type: string type: object request.UpdateOperation: properties: comment: description: 备注 type: string companyID: description: 公司ID-客户 type: integer companyName: description: 公司名称-客户名称 type: string contacterID: description: 联系人ID-非必填 type: integer contacterName: description: 联系人姓名-非必填 type: string details: items: $ref: '#/definitions/request.OperationDetails' type: array fromLocationId: description: 源位置id type: integer id: type: integer number: description: 单号 type: string operationDate: description: 安排日期 type: string operationTypeId: description: 作业类型id type: integer operationTypeName: description: 作业类型名称 type: string sourceNumber: description: 源单号 type: string status: allOf: - $ref: '#/definitions/constvar.OperationStatus' description: 状态 toLocationId: description: 目标位置id type: integer type: object request.UpdateOperationType: properties: ReservationDaysBeforePriority: description: 在优先级的前几天 type: integer baseOperationType: allOf: - $ref: '#/definitions/constvar.BaseOperationType' description: 基础作业类型 companyId: description: 公司id type: integer createBackorder: allOf: - $ref: '#/definitions/constvar.WhetherType' description: 创建欠单 defaultLocationDestId: description: 默认目标位置id type: integer defaultLocationSrcId: description: 默认源位置id type: integer id: type: integer name: description: 仓库名称 type: string printLabel: description: 是否打印标签 type: boolean reservationDaysBefore: description: 收货前几天 type: integer reservationMethod: allOf: - $ref: '#/definitions/constvar.ReservationMethod' description: 保留方式 returnOperationTypeID: description: 退货类型ID type: integer showOperations: description: 显示作业详情 type: boolean warehouseId: description: 仓库id type: integer type: object util.Response: properties: code: type: integer data: {} msg: type: string type: object util.ResponseList: properties: code: type: integer data: {} msg: type: string page: type: integer pageSize: type: integer total: type: integer type: object info: contact: {} paths: /api-s/v1/organize/department: get: parameters: - description: 页码 in: query name: page type: integer - description: 每页大小 in: query name: pageSize type: integer produces: - application/json responses: "200": description: 成功 schema: allOf: - $ref: '#/definitions/util.ResponseList' - properties: data: items: $ref: '#/definitions/models.Department' type: array type: object summary: 查询部门信息列表 tags: - 部门信息 post: parameters: - description: 部门信息信息 in: body name: object required: true schema: $ref: '#/definitions/request.AddDepartment' produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 添加部门信息 tags: - 部门信息 /api-s/v1/organize/department/{id}: delete: parameters: - description: 部门信息信息 in: body name: object required: true schema: $ref: '#/definitions/request.UpdateDepartment' produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 编辑部门信息 tags: - 部门信息 put: parameters: - description: 部门信息信息 in: body name: object required: true schema: $ref: '#/definitions/request.UpdateDepartment' produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 编辑部门信息 tags: - 部门信息 /api-wms/v1/company/company: get: parameters: - in: query name: keyword type: string - description: 页码 in: query name: page type: integer - description: 每页大小 in: query name: pageSize type: integer produces: - application/json responses: "200": description: 成功 schema: allOf: - $ref: '#/definitions/util.ResponseList' - properties: data: items: $ref: '#/definitions/models.Company' type: array type: object summary: 查询公司列表 tags: - 公司 post: parameters: - description: 公司信息 in: body name: object required: true schema: $ref: '#/definitions/request.AddCompany' produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 添加公司 tags: - 公司 /api-wms/v1/company/company/{id}: delete: parameters: - description: 公司id in: path name: id required: true type: string produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 删除公司 tags: - 公司 put: parameters: - description: 公司信息 in: body name: object required: true schema: $ref: '#/definitions/request.UpdateCompany' - description: 公司id in: path name: id required: true type: string produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 编辑公司 tags: - 公司 /api-wms/v1/location/addLocation: post: parameters: - description: 位置信息 in: body name: object required: true schema: $ref: '#/definitions/models.Location' produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 添加位置信息 tags: - 位置 /api-wms/v1/location/deleteLocation/{id}: delete: parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 删除位置 tags: - 位置 /api-wms/v1/location/getLocationDetails/{id}: get: parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: 成功 schema: allOf: - $ref: '#/definitions/util.Response' - properties: data: $ref: '#/definitions/models.Location' type: object summary: 获取位置详情 tags: - 位置 /api-wms/v1/location/getLocationList: 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.Location' type: array type: object summary: 获取位置列表 tags: - 位置 /api-wms/v1/location/updateLocation: post: parameters: - description: 产品信息 in: body name: object required: true schema: $ref: '#/definitions/models.Location' produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 修改位置 tags: - 位置 /api-wms/v1/operation/finish/{id}: put: parameters: - description: id in: path name: id required: true type: integer produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 更改记录状态 tags: - 入库/出库 /api-wms/v1/operation/operation: get: consumes: - application/json parameters: - in: query name: operationTypeId type: integer - description: 页码 in: query name: page type: integer - description: 每页大小 in: query name: pageSize type: integer produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 入库/出库列表 tags: - 入库/出库 post: parameters: - description: 入库/出库信息 in: body name: object required: true schema: $ref: '#/definitions/request.AddOperation' produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 添加入库/出库 tags: - 入库/出库 /api-wms/v1/operation/operation/{id}: delete: parameters: - description: id in: path name: id required: true type: integer produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 删除入库/出库信息 tags: - 入库/出库 /api-wms/v1/operation/update: post: parameters: - description: 入库信息 in: body name: object required: true schema: $ref: '#/definitions/request.UpdateOperation' produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 修改入库/出库信息 tags: - 入库/出库 /api-wms/v1/operationType/operationType: get: parameters: - in: query name: keyword type: string - description: 页码 in: query name: page type: integer - description: 每页大小 in: query name: pageSize type: integer produces: - application/json responses: "200": description: 成功 schema: allOf: - $ref: '#/definitions/util.ResponseList' - properties: data: items: $ref: '#/definitions/models.OperationType' type: array type: object summary: 查询作业类型列表 tags: - 业务类型 post: parameters: - description: 作业类型信息 in: body name: object required: true schema: $ref: '#/definitions/request.AddOperationType' produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 添加作业类型 tags: - 业务类型 /api-wms/v1/operationType/operationType/{id}: delete: parameters: - description: 作业类型id in: path name: id required: true type: string produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 删除作业类型 tags: - 业务类型 put: parameters: - description: 作业类型信息 in: body name: object required: true schema: $ref: '#/definitions/request.UpdateOperationType' - description: 作业类型id in: path name: id required: true type: string produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 编辑作业类型 tags: - 业务类型 /api-wms/v1/product/addProduct: post: parameters: - description: 产品信息 in: body name: object required: true schema: $ref: '#/definitions/models.Material' produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 添加产品 tags: - 产品 /api-wms/v1/product/addProductCategory: post: parameters: - description: 产品类型信息 in: body name: object required: true schema: $ref: '#/definitions/models.ProductCategory' produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 添加产品类型 tags: - 产品类型 /api-wms/v1/product/deleteProduct/{id}: delete: parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 删除产品 tags: - 产品 /api-wms/v1/product/deleteProductCategory/{id}: delete: parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 删除产品类型 tags: - 产品类型 /api-wms/v1/product/getProductCategoryDetails/{id}: get: parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: 成功 schema: allOf: - $ref: '#/definitions/util.Response' - properties: data: $ref: '#/definitions/models.Material' type: object summary: 获取产品类型详情 tags: - 产品类型 /api-wms/v1/product/getProductCategoryList: 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.ProductCategory' type: array type: object summary: 获取产品类型列表 tags: - 产品类型 /api-wms/v1/product/getProductDetails/{id}: get: parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: 成功 schema: allOf: - $ref: '#/definitions/util.Response' - properties: data: $ref: '#/definitions/models.Material' type: object 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.Material' type: array type: object summary: 获取产品列表 tags: - 产品 /api-wms/v1/product/updateProduct: post: parameters: - description: 产品信息 in: body name: object required: true schema: $ref: '#/definitions/models.Material' produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 修改产品 tags: - 产品 /api-wms/v1/product/updateProductCategory: post: parameters: - description: 产品信息 in: body name: object required: true schema: $ref: '#/definitions/models.ProductCategory' produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 修改产品类型 tags: - 产品类型 /api-wms/v1/warehouse/getWarehouseDetails/{id}: get: parameters: - description: 仓库id in: path name: id required: true type: string produces: - application/json responses: "200": description: 成功 schema: allOf: - $ref: '#/definitions/util.Response' - properties: data: $ref: '#/definitions/models.Warehouse' type: object summary: 获取仓库详情 tags: - 仓库 /api-wms/v1/warehouse/updateWarehouse: post: parameters: - description: 仓库信息 in: body name: object required: true schema: $ref: '#/definitions/models.Warehouse' produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 编辑仓库 tags: - 仓库 /api-wms/v1/warehouse/warehouse: get: parameters: - in: query name: keyword type: string - description: 页码 in: query name: page type: integer - description: 每页大小 in: query name: pageSize type: integer produces: - application/json responses: "200": description: 成功 schema: allOf: - $ref: '#/definitions/util.ResponseList' - properties: data: items: $ref: '#/definitions/models.Warehouse' type: array type: object summary: 查询仓库列表 tags: - 仓库 post: parameters: - description: 仓库信息 in: body name: object required: true schema: $ref: '#/definitions/request.AddWarehouse' produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 添加仓库 tags: - 仓库 /api-wms/v1/warehouse/warehouse/{id}: delete: parameters: - description: 仓库id in: path name: id required: true type: string produces: - application/json responses: "200": description: 成功 schema: $ref: '#/definitions/util.Response' summary: 删除仓库 tags: - 仓库 swagger: "2.0"