From a583fb5fdd2ccdc20e22cebf9428237915645c57 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 08 八月 2023 20:47:02 +0800
Subject: [PATCH] 增加产品列表产品详情接口(代前端请求aps grpc接口)

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

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 0a744e3..96e4ee4 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -1579,6 +1579,33 @@
       uuid:
         type: string
     type: object
+  product.Product:
+    properties:
+      Amount:
+        description: 搴撳瓨鍓╀綑閲�
+        type: number
+      IsSale:
+        description: 鏄惁閿�鍞�
+        type: boolean
+      MaterialMode:
+        description: 鐗╂枡绫诲瀷
+        type: string
+      MinInventory:
+        description: 瀹夊叏搴撳瓨
+        type: integer
+      Name:
+        type: string
+      Number:
+        type: string
+      PurchaseType:
+        description: 閲囪喘绫诲瀷
+        type: string
+      SalePrice:
+        description: 閿�鍞环鏍�
+        type: number
+      Unit:
+        type: string
+    type: object
   request.AddAccountId:
     properties:
       name:
@@ -8160,6 +8187,61 @@
       summary: 鏇存柊浼樺厛绾у埆
       tags:
       - 浼樺厛绾у埆绠$悊
+  /api/product/info:
+    get:
+      parameters:
+      - description: 鍙傛暟
+        in: query
+        name: productNumber
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/contextx.Response'
+            - properties:
+                data:
+                  $ref: '#/definitions/product.Product'
+              type: object
+      summary: 鑾峰彇浜у搧璇︽儏
+      tags:
+      - 浜у搧
+  /api/product/list:
+    get:
+      parameters:
+      - in: query
+        name: ProductName
+        type: string
+      - in: query
+        name: ProductNumber
+        type: string
+      - in: query
+        name: page
+        type: integer
+      - in: query
+        name: pageSize
+        type: integer
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            allOf:
+            - $ref: '#/definitions/response.ListResponse'
+            - properties:
+                data:
+                  items:
+                    $ref: '#/definitions/product.Product'
+                  type: array
+              type: object
+      summary: 鑾峰彇浜у搧鍒楄〃
+      tags:
+      - 浜у搧
   /api/province/add:
     post:
       parameters:

--
Gitblit v1.8.0