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