From 1d5cb2f03c706c4b1cc36f50fd431f98fdbe7101 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期三, 13 十二月 2023 15:23:33 +0800
Subject: [PATCH] 对number的验证及不重复

---
 docs/swagger.yaml |  168 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 167 insertions(+), 1 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 37b8823..2f29308 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -180,7 +180,7 @@
     - 5
     type: integer
     x-enum-comments:
-      OperationStatus_Cancel: 瀹屾垚
+      OperationStatus_Cancel: 鍙栨秷
       OperationStatus_Draft: 鑽夌
       OperationStatus_Finish: 瀹屾垚
       OperationStatus_Ready: 灏辩华
@@ -465,6 +465,8 @@
           OriginCountryId         int                        `gorm:"type:int(11);comment:鍘熶骇鍦癷d" json:"originCountryId"`               //鍘熶骇鍦癷d
           OriginCountryName       string                     `gorm:"type:varchar(255);comment:鍘熶骇鍦板悕绉�" json:"originCountryName"`        //鍘熶骇鍦板悕绉�
         type: string
+      inputAmount:
+        type: number
       internalNotes:
         description: 鍐呴儴璇存槑
         type: string
@@ -487,7 +489,13 @@
       maxInventory:
         description: 鏈�澶у簱瀛�
         type: number
+      maxInventoryRule:
+        description: 鏈�澶у簱瀛�
+        type: number
       minInventory:
+        description: 鏈�灏忓簱瀛�
+        type: number
+      minInventoryRule:
         description: 鏈�灏忓簱瀛�
         type: number
       minPurchaseAmount:
@@ -515,6 +523,10 @@
       outStorageExplain:
         description: 鍑哄簱璇存槑
         type: string
+      outputAmount:
+        type: number
+      predictionAmount:
+        type: number
       principal:
         description: 璐熻矗浜�
         type: string
@@ -533,6 +545,8 @@
         type: number
       purchaseType:
         $ref: '#/definitions/constvar.PurchaseType'
+      reorderRuleNum:
+        type: integer
       salePrice:
         description: 閿�鍞崟浠�
         type: number
@@ -567,6 +581,8 @@
     type: object
   models.Operation:
     properties:
+      auditDate:
+        type: string
       baseOperationType:
         allOf:
         - $ref: '#/definitions/constvar.BaseOperationType'
@@ -613,6 +629,14 @@
         type: integer
       operationTypeName:
         description: 浣滀笟绫诲瀷鍚嶇О
+        type: string
+      receiverAddr:
+        type: string
+      receiverName:
+        type: string
+      receiverPhone:
+        type: string
+      source:
         type: string
       sourceNumber:
         description: 婧愬崟鍙�
@@ -666,6 +690,8 @@
         allOf:
         - $ref: '#/definitions/constvar.CostingMethod'
         description: 鎴愭湰鏂规硶
+      createTime:
+        type: string
       forceRemovalStrategy:
         allOf:
         - $ref: '#/definitions/constvar.ForceRemovalStrategy'
@@ -687,6 +713,8 @@
         type: integer
       routeName:
         description: 鍏徃
+        type: string
+      updateTime:
         type: string
     type: object
   models.ReorderRule:
@@ -723,6 +751,9 @@
       route:
         description: 璺嚎
         type: string
+      supplierId:
+        description: 渚涘簲鍟唅d
+        type: integer
       unit:
         description: 鍗曚綅
         type: string
@@ -882,6 +913,12 @@
         type: integer
       operationTypeName:
         description: 浣滀笟绫诲瀷鍚嶇О
+        type: string
+      receiverAddr:
+        type: string
+      receiverName:
+        type: string
+      receiverPhone:
         type: string
       sourceNumber:
         description: 婧愬崟鍙�
@@ -1072,6 +1109,9 @@
     type: object
   request.GetLocationList:
     properties:
+      isScrapLocation:
+        description: 鏄惁鎶ュ簾
+        type: boolean
       jointName:
         description: 鎷兼帴鍚嶇О
         type: string
@@ -1138,6 +1178,17 @@
         type: integer
       sourceNumber:
         type: string
+    type: object
+  request.OperationCondition:
+    properties:
+      condition:
+        type: string
+      page:
+        description: 椤电爜
+        type: integer
+      pageSize:
+        description: 姣忛〉澶у皬
+        type: integer
     type: object
   request.OperationDetails:
     properties:
@@ -1352,6 +1403,12 @@
       operationTypeName:
         description: 浣滀笟绫诲瀷鍚嶇О
         type: string
+      receiverAddr:
+        type: string
+      receiverName:
+        type: string
+      receiverPhone:
+        type: string
       sourceNumber:
         description: 婧愬崟鍙�
         type: string
@@ -1470,8 +1527,14 @@
       fromLocation:
         description: 婧愪綅缃�
         type: string
+      fromLocationId:
+        type: integer
       number:
         description: 鍗曞彿
+        type: string
+      operationId:
+        type: integer
+      productId:
         type: string
       productName:
         description: 浜у搧鍚嶇О
@@ -1482,9 +1545,14 @@
       toLocation:
         description: 鐩爣浣嶇疆
         type: string
+      toLocationId:
+        type: integer
       unit:
         description: 鍗曚綅
         type: string
+      weight:
+        description: 閲嶉噺
+        type: number
     type: object
   response.LocationForms:
     properties:
@@ -2208,6 +2276,18 @@
       summary: 鏇存敼璁板綍鐘舵��
       tags:
       - 鍏ュ簱/鍑哄簱
+  /api-wms/v1/operation/getClientList:
+    get:
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 鑾峰彇鐗╂祦鍏徃鍒楄〃
+      tags:
+      - 鍏ュ簱/鍑哄簱
   /api-wms/v1/operation/getLogisticCompanyList:
     get:
       produces:
@@ -2224,6 +2304,36 @@
                     $ref: '#/definitions/models.LogisticCompany'
                   type: array
               type: object
+      summary: 鑾峰彇鐗╂祦鍏徃鍒楄〃
+      tags:
+      - 鍏ュ簱/鍑哄簱
+  /api-wms/v1/operation/getOperationInfo/{id}:
+    get:
+      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/operation/getSupplierList:
+    get:
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
       summary: 鑾峰彇鐗╂祦鍏徃鍒楄〃
       tags:
       - 鍏ュ簱/鍑哄簱
@@ -2244,6 +2354,25 @@
           schema:
             $ref: '#/definitions/util.Response'
       summary: 鍏ュ簱/鍑哄簱鍒楄〃
+      tags:
+      - 鍏ュ簱/鍑哄簱
+  /api-wms/v1/operation/listByCondition:
+    post:
+      parameters:
+      - description: 鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.OperationCondition'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 鍑哄叆搴撴槑缁�
       tags:
       - 鍏ュ簱/鍑哄簱
   /api-wms/v1/operation/listTransfer:
@@ -2300,6 +2429,24 @@
           schema:
             $ref: '#/definitions/util.Response'
       summary: 鍒犻櫎鍏ュ簱/鍑哄簱淇℃伅
+      tags:
+      - 鍏ュ簱/鍑哄簱
+  /api-wms/v1/operation/outputOperation/{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/update:
@@ -2866,6 +3013,25 @@
       summary: 鍐嶈涓�娆�
       tags:
       - 閲嶈璐ц鍒�
+  /api-wms/v1/reorderRule/submitOrder:
+    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:

--
Gitblit v1.8.0