From 307c699810c39714e82efac9de56f70b93a718a2 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期二, 31 十月 2023 11:54:23 +0800 Subject: [PATCH] 重订货规则开发 --- docs/swagger.yaml | 172 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 172 insertions(+), 0 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index c8df29e..a9369d0 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -541,6 +541,46 @@ description: 鍏徃 type: string type: object + models.ReorderRule: + properties: + amount: + description: 鍦ㄥ簱鏁伴噺 + type: number + createTime: + type: string + id: + type: integer + location: + $ref: '#/definitions/models.Location' + locationId: + description: 浣嶇疆id + type: integer + maxInventory: + description: 鏈�澶у簱瀛� + type: number + minInventory: + description: 鏈�灏忓簱瀛� + type: number + orderNumber: + description: 璁㈣喘鏁伴噺 + type: number + prediction: + description: 棰勬祴鏁伴噺 + type: number + product: + $ref: '#/definitions/models.Material' + productId: + description: 浜у搧id + type: string + route: + description: 璺嚎 + type: string + unit: + description: 鍗曚綅 + type: string + updateTime: + type: string + type: object models.Warehouse: properties: active: @@ -798,6 +838,13 @@ description: 浜у搧id type: string type: object + request.GetAmountAndPrediction: + properties: + locationId: + type: integer + productId: + type: string + type: object request.GetInventoryForms: properties: categoryIds: @@ -862,6 +909,17 @@ properties: categoryId: type: integer + keyWord: + type: string + page: + description: 椤电爜 + type: integer + pageSize: + description: 姣忛〉澶у皬 + type: integer + type: object + request.GetReorderRuleList: + properties: keyWord: type: string page: @@ -1196,6 +1254,10 @@ amount: description: 鏁伴噺 type: number + baseOperationType: + allOf: + - $ref: '#/definitions/constvar.BaseOperationType' + description: 鍩虹浣滀笟绫诲瀷 contactedName: description: 瀹屾垚鑰� type: string @@ -2364,6 +2426,116 @@ summary: 淇敼浜у搧绫诲瀷 tags: - 浜у搧绫诲瀷 + /api-wms/v1/reorderRule/addReorderRule: + post: + parameters: + - description: 閲嶈璐ц鍒� + in: body + name: object + required: true + schema: + $ref: '#/definitions/models.ReorderRule' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/util.Response' + summary: 娣诲姞閲嶈璐ц鍒� + tags: + - 閲嶈璐ц鍒� + /api-wms/v1/reorderRule/getAmountAndPrediction: + post: + parameters: + - description: 閲嶈璐ц鍒� + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.GetAmountAndPrediction' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + allOf: + - $ref: '#/definitions/util.ResponseList' + - properties: + data: + items: + additionalProperties: true + type: object + type: array + type: object + summary: 鑾峰彇鍦ㄥ簱涓庨娴嬫暟閲� + tags: + - 閲嶈璐ц鍒� + /api-wms/v1/reorderRule/getReorderRuleList: + post: + parameters: + - description: 鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.GetReorderRuleList' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + allOf: + - $ref: '#/definitions/util.ResponseList' + - properties: + data: + items: + $ref: '#/definitions/models.ReorderRule' + type: array + type: object + summary: 鑾峰彇閲嶈璐ц鍒欏垪琛� + tags: + - 閲嶈璐ц鍒� + /api-wms/v1/reorderRule/orderAgain: + post: + parameters: + - description: 閲嶈璐ц鍒� + in: body + name: object + required: true + schema: + $ref: '#/definitions/models.ReorderRule' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/util.Response' + summary: 鍐嶈涓�娆� + tags: + - 閲嶈璐ц鍒� + /api-wms/v1/reorderRule/updateReorderRule: + post: + parameters: + - description: 閲嶈璐ц鍒� + in: body + name: object + required: true + schema: + $ref: '#/definitions/models.ReorderRule' + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + $ref: '#/definitions/util.Response' + summary: 鏇存柊閲嶈璐ц鍒� + tags: + - 閲嶈璐ц鍒� /api-wms/v1/warehouse/getWarehouseDetails/{id}: get: parameters: -- Gitblit v1.8.0