From 7edecfcf0f48ba6d6177486a57399a558c4c79e7 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期三, 27 九月 2023 11:14:17 +0800
Subject: [PATCH] 1.二期一部分代码

---
 docs/swagger.yaml |  193 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 190 insertions(+), 3 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 81acff3..fa7b60e 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -4,8 +4,12 @@
     - 1
     - 2
     - 3
+    - 4
+    - 5
     type: integer
     x-enum-comments:
+      BaseOperationTypeAdjust: 搴撳瓨鐩樼偣
+      BaseOperationTypeDisuse: 鎶ュ簾
       BaseOperationTypeIncoming: 鏀惰揣
       BaseOperationTypeInternal: 鍐呴儴璋冩嫧
       BaseOperationTypeOutgoing: 浜よ揣
@@ -13,6 +17,8 @@
     - BaseOperationTypeIncoming
     - BaseOperationTypeOutgoing
     - BaseOperationTypeInternal
+    - BaseOperationTypeDisuse
+    - BaseOperationTypeAdjust
   constvar.CostingMethod:
     enum:
     - 1
@@ -78,9 +84,11 @@
     - 6
     - 7
     - 8
+    - 9
     type: integer
     x-enum-comments:
       LocationTypeCustomer: 瀹㈡埛浣嶇疆
+      LocationTypeDisuse: 鎶ュ簾浣嶇疆
       LocationTypeInternal: 鍐呴儴浣嶇疆
       LocationTypeInventoryLoss: 搴撳瓨鎹熷け
       LocationTypeProduction: 鐢熶骇
@@ -96,6 +104,7 @@
     - LocationTypeProduction
     - LocationTypeTransit
     - LocationTypeDisuse
+    - LocationTypeAdjust
   constvar.MaterialMode:
     enum:
     - 鍘熸潗鏂�
@@ -257,7 +266,7 @@
         type: string
       parentId:
         description: 涓婄骇id
-        type: string
+        type: integer
       recentlyCount:
         description: 鏈�杩戠洏鐐�
         type: string
@@ -422,6 +431,10 @@
     type: object
   models.Operation:
     properties:
+      baseOperationType:
+        allOf:
+        - $ref: '#/definitions/constvar.BaseOperationType'
+        description: 鍩虹浣滀笟绫诲瀷
       comment:
         type: string
       companyID:
@@ -619,6 +632,37 @@
       toLocationId:
         type: integer
     type: object
+  request.AddLocationProduct:
+    properties:
+      areaId:
+        description: 鍖哄煙id
+        type: integer
+      locationId:
+        description: 浣嶇疆id
+        type: integer
+      productCategoryId:
+        description: 浜у搧绉嶇被id
+        type: integer
+      productId:
+        description: 浜у搧id
+        type: string
+    type: object
+  request.AddLocationProductAmount:
+    properties:
+      adjustAmount:
+        description: 宸��
+        type: number
+      decimal:
+        description: 搴撳瓨鏁伴噺
+        type: number
+      difference_amount:
+        description: 璁℃暟鏁伴噺
+        type: number
+      locationId:
+        type: integer
+      productId:
+        type: string
+    type: object
   request.AddOperation:
     properties:
       comment:
@@ -808,6 +852,15 @@
       sourceNumber:
         type: string
     type: object
+  request.PageInfo:
+    properties:
+      page:
+        description: 椤电爜
+        type: integer
+      pageSize:
+        description: 姣忛〉澶у皬
+        type: integer
+    type: object
   request.QueryDisuseList:
     properties:
       number:
@@ -860,14 +913,14 @@
   request.UpdateDisuse:
     properties:
       amount:
-        description: ProductName    string                   `json:"productName"`
         type: number
+      baseOperationType:
+        $ref: '#/definitions/constvar.BaseOperationType'
       fromLocationId:
         type: integer
       id:
         type: integer
       number:
-        description: Unit           string                   `json:"unit"`
         type: string
       operationDate:
         type: string
@@ -880,8 +933,29 @@
       toLocationId:
         type: integer
     type: object
+  request.UpdateLocationProduct:
+    properties:
+      areaId:
+        description: 鍖哄煙id
+        type: integer
+      id:
+        type: integer
+      locationId:
+        description: 浣嶇疆id
+        type: integer
+      productCategoryId:
+        description: 浜у搧绉嶇被id
+        type: integer
+      productId:
+        description: 浜у搧id
+        type: string
+    type: object
   request.UpdateOperation:
     properties:
+      baseOperationType:
+        allOf:
+        - $ref: '#/definitions/constvar.BaseOperationType'
+        description: 鍩虹浣滀笟绫诲瀷
       comment:
         description: 澶囨敞
         type: string
@@ -1279,6 +1353,119 @@
       summary: 淇敼浣嶇疆
       tags:
       - 浣嶇疆
+  /api-wms/v1/locationProduct/add:
+    post:
+      parameters:
+      - description: 鏂板涓婃灦瑙勫垯
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.AddLocationProduct'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 娣诲姞涓婃灦瑙勫垯
+      tags:
+      - 涓婃灦瑙勫垯
+  /api-wms/v1/locationProduct/delete/{id}:
+    delete:
+      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/locationProduct/list:
+    post:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.PageInfo'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 涓婃灦瑙勫垯鍒楄〃
+      tags:
+      - 涓婃灦瑙勫垯
+  /api-wms/v1/locationProduct/update:
+    post:
+      parameters:
+      - description: 淇敼鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.UpdateLocationProduct'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 淇敼涓婃灦瑙勫垯
+      tags:
+      - 涓婃灦瑙勫垯
+  /api-wms/v1/locationProductamount/add:
+    post:
+      parameters:
+      - description: 鍏ュ簱/鍑哄簱淇℃伅
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.AddLocationProductAmount'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 娣诲姞搴撳瓨鐩樼偣淇℃伅
+      tags:
+      - 搴撳瓨鐩樼偣
+  /api-wms/v1/locationProductamount/list:
+    post:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.PageInfo'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 搴撳瓨鐩樼偣鍒楄〃
+      tags:
+      - 搴撳瓨鐩樼偣
   /api-wms/v1/operation/finish/{id}:
     put:
       parameters:

--
Gitblit v1.8.0