From e517b1a99b6edfa24c8cc4e109a6a10488f23b6a Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 28 八月 2023 11:51:55 +0800
Subject: [PATCH] merge

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

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 3b90d1d..e310fbc 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -665,6 +665,69 @@
         description: 鏂囦欢鍦板潃
         type: string
     type: object
+  purchase.Purchase:
+    properties:
+      contact:
+        description: 鑱旂郴浜�
+        type: string
+      deliveryDate:
+        description: 浜や粯鏃ユ湡
+        type: string
+      id:
+        description: 涓婚敭ID
+        type: integer
+      name:
+        description: 閲囪喘鍚嶇О
+        type: string
+      phone:
+        description: 鑱旂郴浜虹數璇�
+        type: string
+      purchaseTypeId:
+        description: 閲囪喘绫诲瀷id
+        type: integer
+      remark:
+        description: 澶囨敞
+        type: string
+      signingDate:
+        description: 绛剧害鏃ユ湡
+        type: string
+      supplierId:
+        description: 渚涘簲鍟唅d
+        type: integer
+    type: object
+  purchase.PurchaseProducts:
+    properties:
+      amount:
+        description: 閲囪喘鏁伴噺
+        type: number
+      id:
+        description: 涓婚敭ID
+        type: integer
+      price:
+        description: 閲囪喘鍗曚环
+        type: number
+      productId:
+        description: 浜у搧id
+        type: integer
+      purchaseId:
+        description: 閲囪喘id
+        type: integer
+      remark:
+        description: 鎻忚堪
+        type: string
+      total:
+        description: 閲囪喘鎬讳环
+        type: number
+    type: object
+  purchaserequest.AddPurchase:
+    properties:
+      productList:
+        items:
+          $ref: '#/definitions/purchase.PurchaseProducts'
+        type: array
+      purchase:
+        $ref: '#/definitions/purchase.Purchase'
+    type: object
   request.AddMenuAuthorityInfo:
     properties:
       authorityId:
@@ -973,6 +1036,15 @@
         items:
           $ref: '#/definitions/request.CasbinInfo'
         type: array
+    type: object
+  response.PurchaseResponse:
+    properties:
+      productList:
+        items:
+          $ref: '#/definitions/purchase.PurchaseProducts'
+        type: array
+      purchase:
+        $ref: '#/definitions/purchase.Purchase'
     type: object
   response.Response:
     properties:
@@ -4176,6 +4248,75 @@
       summary: 鍒嗛〉鑾峰彇Product鍒楄〃
       tags:
       - Product
+  /p/getProductListFromGrpc:
+    get:
+      consumes:
+      - application/json
+      parameters:
+      - in: query
+        name: deliveryTime
+        type: integer
+      - in: query
+        name: endCreatedAt
+        type: string
+      - description: 涓婚敭ID
+        in: query
+        name: id
+        type: integer
+      - description: 鍏抽敭瀛�
+        in: query
+        name: keyword
+        type: string
+      - in: query
+        name: maximumStock
+        type: integer
+      - in: query
+        name: minimumStock
+        type: integer
+      - in: query
+        name: name
+        type: string
+      - in: query
+        name: number
+        type: string
+      - description: 椤电爜
+        in: query
+        name: page
+        type: integer
+      - description: 姣忛〉澶у皬
+        in: query
+        name: pageSize
+        type: integer
+      - in: query
+        name: productType
+        type: string
+      - in: query
+        name: purchasePrice
+        type: number
+      - in: query
+        name: remark
+        type: string
+      - in: query
+        name: shippingDuration
+        type: integer
+      - in: query
+        name: startCreatedAt
+        type: string
+      - in: query
+        name: unit
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}'
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 鍒嗛〉鑾峰彇Product鍒楄〃
+      tags:
+      - Product
   /p/updateProduct:
     put:
       consumes:
@@ -4199,6 +4340,152 @@
       summary: 鏇存柊Product
       tags:
       - Product
+  /purchase/purchase:
+    post:
+      consumes:
+      - application/json
+      parameters:
+      - description: 閲囪喘鍗曠敤鎴峰悕, 閲囪喘鍗曟墜鏈哄彿鐮�
+        in: body
+        name: data
+        required: true
+        schema:
+          $ref: '#/definitions/purchaserequest.AddPurchase'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鍒涘缓閲囪喘鍗�
+          schema:
+            allOf:
+            - $ref: '#/definitions/response.Response'
+            - properties:
+                msg:
+                  type: string
+              type: object
+      security:
+      - ApiKeyAuth: []
+      summary: 鍒涘缓閲囪喘鍗�
+      tags:
+      - Purchase
+    put:
+      consumes:
+      - application/json
+      parameters:
+      - description: 閲囪喘鍗旾D, 閲囪喘鍗曚俊鎭�
+        in: body
+        name: data
+        required: true
+        schema:
+          $ref: '#/definitions/purchaserequest.AddPurchase'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鏇存柊閲囪喘鍗曚俊鎭�
+          schema:
+            allOf:
+            - $ref: '#/definitions/response.Response'
+            - properties:
+                msg:
+                  type: string
+              type: object
+      security:
+      - ApiKeyAuth: []
+      summary: 鏇存柊閲囪喘鍗曚俊鎭�
+      tags:
+      - Purchase
+  /purchase/purchase/{id}:
+    delete:
+      consumes:
+      - application/json
+      parameters:
+      - description: 閲囪喘鍗旾D
+        in: path
+        name: id
+        required: true
+        type: integer
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鍒犻櫎閲囪喘鍗�
+          schema:
+            allOf:
+            - $ref: '#/definitions/response.Response'
+            - properties:
+                msg:
+                  type: string
+              type: object
+      security:
+      - ApiKeyAuth: []
+      summary: 鍒犻櫎閲囪喘鍗�
+      tags:
+      - Purchase
+    get:
+      consumes:
+      - application/json
+      parameters:
+      - description: 閲囪喘鍗旾D
+        in: path
+        name: id
+        required: true
+        type: integer
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鑾峰彇鍗曚竴閲囪喘鍗曚俊鎭�,杩斿洖鍖呮嫭閲囪喘鍗曡鎯�
+          schema:
+            allOf:
+            - $ref: '#/definitions/response.Response'
+            - properties:
+                data:
+                  $ref: '#/definitions/response.PurchaseResponse'
+                msg:
+                  type: string
+              type: object
+      security:
+      - ApiKeyAuth: []
+      summary: 鑾峰彇鍗曚竴閲囪喘鍗曚俊鎭�
+      tags:
+      - Purchase
+  /purchase/purchaseList:
+    get:
+      consumes:
+      - application/json
+      parameters:
+      - description: 鍏抽敭瀛�
+        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/response.Response'
+            - properties:
+                data:
+                  $ref: '#/definitions/response.PageResult'
+                msg:
+                  type: string
+              type: object
+      security:
+      - ApiKeyAuth: []
+      summary: 鍒嗛〉鑾峰彇鏉冮檺閲囪喘鍗曞垪琛�
+      tags:
+      - Purchase
   /s/changeSupplierStatus:
     post:
       consumes:

--
Gitblit v1.8.0