Преглед на файлове

/Guangzuan/QueryDiamond: 添加:zscategorys

deng.yinping преди 2 години
родител
ревизия
210e6898e5
променени са 5 файла, в които са добавени 16 реда и са изтрити 10 реда
  1. 1 0
      controllers/guangzuan/trade.go
  2. 4 3
      docs/docs.go
  3. 4 3
      docs/swagger.json
  4. 3 2
      docs/swagger.yaml
  5. 4 2
      models/guangzuan.go

+ 1 - 0
controllers/guangzuan/trade.go

@@ -73,6 +73,7 @@ func QueryDiamond(c *gin.Context) {
 		IsQueryDiamond: true,
 
 		ZSCATEGORY:         req.ZSCATEGORY,
+		ZSCATEGORYS:        req.ZSCATEGORYS,
 		ZSCURRENCYTYPE_S:   req.ZSCURRENCYTYPE,
 		WAREHOUSEID:        req.WAREHOUSEID,
 		WEIGHT:             req.WEIGHT1,

+ 4 - 3
docs/docs.go

@@ -48482,9 +48482,6 @@ const docTemplate = `{
         },
         "models.SellOrderQueryReq": {
             "type": "object",
-            "required": [
-                "zscategory"
-            ],
             "properties": {
                 "origin": {
                     "description": "原产地",
@@ -48526,6 +48523,10 @@ const docTemplate = `{
                     "description": "钻石分类 - 枚举”ZSCategory“",
                     "type": "integer"
                 },
+                "zscategorys": {
+                    "description": "钻石分类 - 枚举”ZSCategorys“ 逗号分隔",
+                    "type": "string"
+                },
                 "zscerttype": {
                     "description": "证书类型",
                     "type": "array",

+ 4 - 3
docs/swagger.json

@@ -48473,9 +48473,6 @@
         },
         "models.SellOrderQueryReq": {
             "type": "object",
-            "required": [
-                "zscategory"
-            ],
             "properties": {
                 "origin": {
                     "description": "原产地",
@@ -48517,6 +48514,10 @@
                     "description": "钻石分类 - 枚举”ZSCategory“",
                     "type": "integer"
                 },
+                "zscategorys": {
+                    "description": "钻石分类 - 枚举”ZSCategorys“ 逗号分隔",
+                    "type": "string"
+                },
                 "zscerttype": {
                     "description": "证书类型",
                     "type": "array",

+ 3 - 2
docs/swagger.yaml

@@ -20346,6 +20346,9 @@ definitions:
       zscategory:
         description: 钻石分类 - 枚举”ZSCategory“
         type: integer
+      zscategorys:
+        description: 钻石分类 - 枚举”ZSCategorys“ 逗号分隔
+        type: string
       zscerttype:
         description: 证书类型
         items:
@@ -20401,8 +20404,6 @@ definitions:
         items:
           type: integer
         type: array
-    required:
-    - zscategory
     type: object
   models.Sitecolumnconfig:
     properties:

+ 4 - 2
models/guangzuan.go

@@ -352,8 +352,8 @@ func (r *BuyOrder) GetDataByPage() (interface{}, error, int, int, int) {
 
 // SellOrderQueryReq 钻石搜索入参
 type SellOrderQueryReq struct {
-	ZSCATEGORY     int32    `json:"zscategory" binding:"required"` // 钻石分类 - 枚举”ZSCategory“
-	ZSCURRENCYTYPE []string `json:"zscurrencytype"`                // 货币类型 - 枚举“ZSCurrencyType”
+	ZSCATEGORY     int32    `json:"zscategory"`     // 钻石分类 - 枚举”ZSCategory“
+	ZSCURRENCYTYPE []string `json:"zscurrencytype"` // 货币类型 - 枚举“ZSCurrencyType”
 
 	WAREHOUSEID        int64    `json:"warehouseid"`        // 仓库ID
 	WEIGHT1            float64  `json:"weight1"`            // 总重量(克拉重量)-从
@@ -372,6 +372,8 @@ type SellOrderQueryReq struct {
 	ZSSTYLETYPE        []string `json:"zsstyletype"`        // 款式
 	ZSCZCOLOR1TYPE     []string `json:"zsczcolor1type"`     // 彩钻颜色1
 
+	ZSCATEGORYS string `json:"zscategorys" ` // 钻石分类 - 枚举”ZSCategorys“ 逗号分隔
+
 	PageJosn // 分页
 }