From d8e60a242489d448cf9c0af8d3636ddadbc6476f Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期六, 26 八月 2023 11:58:57 +0800
Subject: [PATCH] add

---
 docs/swagger.yaml |  288 ++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 263 insertions(+), 25 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 09a96c0..477fa41 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -377,7 +377,7 @@
           $ref: '#/definitions/config.SpecializedDB'
         type: array
       email:
-        $ref: '#/definitions/github_com_flipped-aurora_gin-vue-admin_server_config.Email'
+        $ref: '#/definitions/srm_config.Email'
       excel:
         $ref: '#/definitions/config.Excel'
       hua-wei-obs:
@@ -657,30 +657,6 @@
         type: string
       url:
         description: 鏂囦欢鍦板潃
-        type: string
-    type: object
-  github_com_flipped-aurora_gin-vue-admin_server_config.Email:
-    properties:
-      from:
-        description: 鍙戜欢浜�  浣犺嚜宸辫鍙戦偖浠剁殑閭
-        type: string
-      host:
-        description: 鏈嶅姟鍣ㄥ湴鍧� 渚嬪 smtp.qq.com  璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚
-        type: string
-      is-ssl:
-        description: 鏄惁SSL   鏄惁寮�鍚疭SL
-        type: boolean
-      nickname:
-        description: 鏄电О    鍙戜欢浜烘樀绉� 閫氬父涓鸿嚜宸辩殑閭
-        type: string
-      port:
-        description: 绔彛     璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚 澶у涓� 465
-        type: integer
-      secret:
-        description: 瀵嗛挜    鐢ㄤ簬鐧诲綍鐨勫瘑閽� 鏈�濂戒笉瑕佺敤閭瀵嗙爜 鍘婚偖绠眘mtp鐢宠涓�涓敤浜庣櫥褰曠殑瀵嗛挜
-        type: string
-      to:
-        description: 鏀朵欢浜�:澶氫釜浠ヨ嫳鏂囬�楀彿鍒嗛殧 渚嬶細a@qq.com b@qq.com 姝e紡寮�鍙戜腑璇锋妸姝ら」鐩綔涓哄弬鏁颁娇鐢�
         type: string
     type: object
   request.AddMenuAuthorityInfo:
@@ -1064,6 +1040,30 @@
     properties:
       user:
         $ref: '#/definitions/system.SysUser'
+    type: object
+  srm_config.Email:
+    properties:
+      from:
+        description: 鍙戜欢浜�  浣犺嚜宸辫鍙戦偖浠剁殑閭
+        type: string
+      host:
+        description: 鏈嶅姟鍣ㄥ湴鍧� 渚嬪 smtp.qq.com  璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚
+        type: string
+      is-ssl:
+        description: 鏄惁SSL   鏄惁寮�鍚疭SL
+        type: boolean
+      nickname:
+        description: 鏄电О    鍙戜欢浜烘樀绉� 閫氬父涓鸿嚜宸辩殑閭
+        type: string
+      port:
+        description: 绔彛     璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚 澶у涓� 465
+        type: integer
+      secret:
+        description: 瀵嗛挜    鐢ㄤ簬鐧诲綍鐨勫瘑閽� 鏈�濂戒笉瑕佺敤閭瀵嗙爜 鍘婚偖绠眘mtp鐢宠涓�涓敤浜庣櫥褰曠殑瀵嗛挜
+        type: string
+      to:
+        description: 鏀朵欢浜�:澶氫釜浠ヨ嫳鏂囬�楀彿鍒嗛殧 渚嬶細a@qq.com b@qq.com 姝e紡寮�鍙戜腑璇锋妸姝ら」鐩綔涓哄弬鏁颁娇鐢�
+        type: string
     type: object
   system.AutoCodeStruct:
     properties:
@@ -1507,6 +1507,32 @@
         description: 涓婚敭ID
         type: integer
       name:
+        type: string
+    type: object
+  test.Product:
+    properties:
+      deliveryTime:
+        type: integer
+      id:
+        description: 涓婚敭ID
+        type: integer
+      maximumStock:
+        type: integer
+      minimumStock:
+        type: integer
+      name:
+        type: string
+      number:
+        type: string
+      productType:
+        type: string
+      purchasePrice:
+        type: number
+      remark:
+        type: string
+      shippingDuration:
+        type: integer
+      unit:
         type: string
     type: object
   test.Supplier:
@@ -3614,6 +3640,218 @@
       summary: 鏇存柊鑿滃崟
       tags:
       - Menu
+  /p/createProduct:
+    post:
+      consumes:
+      - application/json
+      parameters:
+      - description: 鍒涘缓Product
+        in: body
+        name: data
+        required: true
+        schema:
+          $ref: '#/definitions/test.Product'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}'
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 鍒涘缓Product
+      tags:
+      - Product
+  /p/deleteProduct:
+    delete:
+      consumes:
+      - application/json
+      parameters:
+      - description: 鍒犻櫎Product
+        in: body
+        name: data
+        required: true
+        schema:
+          $ref: '#/definitions/test.Product'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: '{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}'
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 鍒犻櫎Product
+      tags:
+      - Product
+  /p/deleteProductByIds:
+    delete:
+      consumes:
+      - application/json
+      parameters:
+      - description: 鎵归噺鍒犻櫎Product
+        in: body
+        name: data
+        required: true
+        schema:
+          $ref: '#/definitions/request.IdsReq'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: '{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}'
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 鎵归噺鍒犻櫎Product
+      tags:
+      - Product
+  /p/findProduct:
+    get:
+      consumes:
+      - application/json
+      parameters:
+      - in: query
+        name: deliveryTime
+        type: integer
+      - description: 涓婚敭ID
+        in: query
+        name: id
+        type: integer
+      - in: query
+        name: maximumStock
+        type: integer
+      - in: query
+        name: minimumStock
+        type: integer
+      - in: query
+        name: name
+        type: string
+      - in: query
+        name: number
+        type: string
+      - 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: unit
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: '{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}'
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 鐢╥d鏌ヨProduct
+      tags:
+      - Product
+  /p/getProductList:
+    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:
+      - application/json
+      parameters:
+      - description: 鏇存柊Product
+        in: body
+        name: data
+        required: true
+        schema:
+          $ref: '#/definitions/test.Product'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: '{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}'
+          schema:
+            type: string
+      security:
+      - ApiKeyAuth: []
+      summary: 鏇存柊Product
+      tags:
+      - Product
   /s/changeSupplierStatus:
     post:
       consumes:

--
Gitblit v1.8.0