From e5c9327d1b659cd6bf9c3adc3ae81146630511a0 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 29 八月 2023 14:51:21 +0800
Subject: [PATCH] Merge branch 'purchase'

---
 docs/swagger.yaml |  163 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 161 insertions(+), 2 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index e4d4b7f..6547ff2 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -677,6 +677,23 @@
         description: 鏂囦欢鍦板潃
         type: string
     type: object
+  purchase.OrderStatus:
+    enum:
+    - 1
+    - 2
+    - 3
+    - 4
+    type: integer
+    x-enum-comments:
+      OrderStatusCompleted: 宸插畬鎴�
+      OrderStatusConfirmed: 宸蹭笅鍗�
+      OrderStatusReceived: 宸插埌璐�
+      OrderStatusStored: 宸插叆搴�
+    x-enum-varnames:
+    - OrderStatusConfirmed
+    - OrderStatusReceived
+    - OrderStatusStored
+    - OrderStatusCompleted
   purchase.Purchase:
     properties:
       contact:
@@ -694,9 +711,14 @@
       name:
         description: 閲囪喘鍚嶇О
         type: string
+      number:
+        description: 閲囪喘缂栧彿
+        type: string
       phone:
         description: 鑱旂郴浜虹數璇�
         type: string
+      purchaseType:
+        $ref: '#/definitions/purchase.PurchaseType'
       purchaseTypeId:
         description: 閲囪喘绫诲瀷id
         type: integer
@@ -706,6 +728,12 @@
       signingDate:
         description: 绛剧害鏃ユ湡
         type: string
+      status:
+        allOf:
+        - $ref: '#/definitions/purchase.OrderStatus'
+        description: 鐘舵��
+      supplier:
+        $ref: '#/definitions/test.Supplier'
       supplierId:
         description: 渚涘簲鍟唅d
         type: integer
@@ -737,6 +765,21 @@
         description: 閲囪喘鎬讳环
         type: number
     type: object
+  purchase.PurchaseType:
+    properties:
+      id:
+        description: 涓婚敭ID
+        type: integer
+      name:
+        description: 閲囪喘绫诲瀷
+        type: string
+      pin:
+        description: 鏄惁缃《
+        type: boolean
+      sort:
+        description: 鎺掑簭
+        type: integer
+    type: object
   purchaserequest.AddPurchase:
     properties:
       productList:
@@ -744,7 +787,68 @@
           $ref: '#/definitions/purchase.PurchaseProducts'
         type: array
       purchase:
-        $ref: '#/definitions/purchase.Purchase'
+        $ref: '#/definitions/purchaserequest.Purchase'
+    type: object
+  purchaserequest.Purchase:
+    properties:
+      contact:
+        description: 鑱旂郴浜�
+        type: string
+      deliveryDate:
+        description: 浜や粯鏃ユ湡
+        type: string
+      id:
+        description: 涓婚敭ID
+        type: integer
+      name:
+        description: 閲囪喘鍚嶇О
+        type: string
+      number:
+        description: 閲囪喘缂栧彿
+        type: string
+      phone:
+        description: 鑱旂郴浜虹數璇�
+        type: string
+      purchaseTypeId:
+        description: 閲囪喘绫诲瀷id
+        type: integer
+      remark:
+        description: 澶囨敞
+        type: string
+      signingDate:
+        description: 绛剧害鏃ユ湡
+        type: string
+      status:
+        allOf:
+        - $ref: '#/definitions/purchase.OrderStatus'
+        description: 鐘舵��
+      supplierId:
+        description: 渚涘簲鍟唅d
+        type: integer
+    type: object
+  purchaserequest.PurchaseType:
+    properties:
+      id:
+        description: 涓婚敭ID
+        type: integer
+      name:
+        description: 閲囪喘绫诲瀷
+        type: string
+      pin:
+        description: 鏄惁缃《
+        type: boolean
+      sort:
+        description: 鎺掑簭
+        type: integer
+    type: object
+  purchaserequest.UpdatePurchase:
+    properties:
+      productList:
+        items:
+          $ref: '#/definitions/purchase.PurchaseProducts'
+        type: array
+      purchase:
+        $ref: '#/definitions/purchaserequest.Purchase'
     type: object
   request.AddMenuAuthorityInfo:
     properties:
@@ -4436,7 +4540,7 @@
         name: data
         required: true
         schema:
-          $ref: '#/definitions/purchaserequest.AddPurchase'
+          $ref: '#/definitions/purchaserequest.UpdatePurchase'
       produces:
       - application/json
       responses:
@@ -4545,6 +4649,61 @@
       summary: 鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�
       tags:
       - Purchase
+  /purchase/purchaseType:
+    post:
+      consumes:
+      - application/json
+      parameters:
+      - description: 閲囪喘绫诲瀷list
+        in: body
+        name: data
+        required: true
+        schema:
+          items:
+            $ref: '#/definitions/purchaserequest.PurchaseType'
+          type: array
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鍒涘缓閲囪喘绫诲瀷
+          schema:
+            allOf:
+            - $ref: '#/definitions/response.Response'
+            - properties:
+                msg:
+                  type: string
+              type: object
+      security:
+      - ApiKeyAuth: []
+      summary: 鍒涘缓閲囪喘绫诲瀷
+      tags:
+      - Purchase
+  /purchase/purchaseTypeList:
+    get:
+      consumes:
+      - application/json
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鑾峰彇閲囪喘绫诲瀷鍒楄〃
+          schema:
+            allOf:
+            - $ref: '#/definitions/response.Response'
+            - properties:
+                data:
+                  items:
+                    $ref: '#/definitions/purchase.PurchaseType'
+                  type: array
+                msg:
+                  type: string
+              type: object
+      security:
+      - ApiKeyAuth: []
+      summary: 鑾峰彇閲囪喘绫诲瀷鍒楄〃
+      tags:
+      - Purchase
   /purchase/submit/{id}:
     post:
       consumes:

--
Gitblit v1.8.0