| | |
| | | description: 排序 |
| | | type: integer |
| | | type: object |
| | | models.Warehouse: |
| | | properties: |
| | | active: |
| | | description: 是否启用,传true就行 |
| | | type: boolean |
| | | buyToResupply: |
| | | description: 是否购买补给,已购买产品能够发送到此仓库 |
| | | type: boolean |
| | | code: |
| | | description: 仓库编码 |
| | | maxLength: 5 |
| | | minLength: 1 |
| | | type: string |
| | | createTime: |
| | | type: string |
| | | name: |
| | | description: 仓库名称 |
| | | type: string |
| | | 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 |
| | | required: |
| | | - code |
| | | type: object |
| | | request.AddDepartment: |
| | | properties: |
| | | name: |
| | |
| | | remark: |
| | | description: 备注 |
| | | type: string |
| | | type: object |
| | | request.AddWarehouse: |
| | | properties: |
| | | active: |
| | | description: 是否启用,传true就行 |
| | | type: boolean |
| | | buyToResupply: |
| | | description: 购买补给,已购买产品能够发送到此仓库 |
| | | type: boolean |
| | | code: |
| | | description: 仓库编码 |
| | | maxLength: 5 |
| | | minLength: 1 |
| | | type: string |
| | | name: |
| | | description: 仓库名称 |
| | | type: string |
| | | partnerId: |
| | | description: 合作伙伴id |
| | | type: integer |
| | | resupplyWhIds: |
| | | description: 补给来源仓库ID |
| | | items: |
| | | type: string |
| | | type: array |
| | | required: |
| | | - code |
| | | type: object |
| | | request.UpdateDepartment: |
| | | properties: |
| | |
| | | remark: |
| | | description: 备注 |
| | | type: string |
| | | type: object |
| | | request.UpdateWarehouse: |
| | | properties: |
| | | active: |
| | | description: 是否启用,传true就行 |
| | | type: boolean |
| | | buyToResupply: |
| | | description: 购买补给,已购买产品能够发送到此仓库 |
| | | type: boolean |
| | | code: |
| | | description: 仓库编码 |
| | | maxLength: 5 |
| | | minLength: 1 |
| | | type: string |
| | | id: |
| | | type: integer |
| | | name: |
| | | description: 仓库名称 |
| | | type: string |
| | | partnerId: |
| | | description: 合作伙伴id |
| | | type: integer |
| | | resupplyWhIds: |
| | | description: 补给来源仓库ID |
| | | items: |
| | | type: string |
| | | type: array |
| | | required: |
| | | - code |
| | | type: object |
| | | util.Response: |
| | | properties: |
| | |
| | | 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: |
| | | - 仓库 |
| | | put: |
| | | parameters: |
| | | - description: 仓库信息 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.UpdateWarehouse' |
| | | - 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" |