From fb409de4b6ad6bf4d4d0c5ddf652687fdfe7bacb Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 12 九月 2023 14:55:04 +0800
Subject: [PATCH] 仓库增删改查接口

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

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index de92cf1..034292b 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -26,6 +26,42 @@
         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:
@@ -40,6 +76,33 @@
       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:
@@ -57,6 +120,35 @@
       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:
@@ -166,4 +258,94 @@
       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"

--
Gitblit v1.8.0