From 3f1fb8181a80624ec3f77412040777892a462fdc Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期一, 30 十月 2023 19:42:05 +0800
Subject: [PATCH] 上架规则支持产品类别

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

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index c8df29e..96396c4 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -178,6 +178,17 @@
     - ReservationMethodAtConfirm
     - ReservationMethodManual
     - ReservationMethodByDate
+  constvar.RuleType:
+    enum:
+    - 1
+    - 2
+    type: integer
+    x-enum-comments:
+      RuleType_Product: 浜у搧涓婃灦瑙勫垯
+      RuleType_ProductCategory: 浜у搧绫诲埆涓婃灦瑙勫垯
+    x-enum-varnames:
+    - RuleType_Product
+    - RuleType_ProductCategory
   constvar.WhetherType:
     enum:
     - 1
@@ -647,6 +658,10 @@
       productId:
         description: 浜у搧id
         type: string
+      ruleType:
+        allOf:
+        - $ref: '#/definitions/constvar.RuleType'
+        description: 涓婃灦瑙勫垯绫诲瀷 1锛氫骇鍝佺被鍨嬶紱2锛氫骇鍝佺被鍒被鍨�
     type: object
   request.AddOperation:
     properties:
@@ -1029,6 +1044,10 @@
       productId:
         description: 浜у搧id
         type: string
+      ruleType:
+        allOf:
+        - $ref: '#/definitions/constvar.RuleType'
+        description: 涓婃灦瑙勫垯绫诲瀷 1锛氫骇鍝佺被鍨嬶紱2锛氫骇鍝佺被鍒被鍨�
     type: object
   request.UpdateLocationProductAmount:
     properties:

--
Gitblit v1.8.0