definitions: 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.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: description: 部门名称 type: string number: description: 部门编号 type: string parentId: description: 上级部门ID 一级部门传0 type: integer 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: id: type: integer name: description: 部门名称 type: string number: description: 部门编号 type: string parentId: description: 上级部门ID 一级部门传0 type: integer 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: 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/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"