wangshan 3 anni fa
parent
commit
81520edf97
2 ha cambiato i file con 26 aggiunte e 26 eliminazioni
  1. 13 13
      jyBXBuyer/api/bxbuyer.api
  2. 13 13
      jyBXBuyer/api/internal/types/types.go

+ 13 - 13
jyBXBuyer/api/bxbuyer.api

@@ -9,19 +9,19 @@ info (
 
 type (
 	buyerListReq {
-		Province       []string `json:"province"`       //省份
-		City           []string `json:"city"`           //城市
-		BuyerClass     []string `json:"buyerClass"`     //客户类型(采购单位行业)
-		Industry       []string `json:"industry"`       //行业分类(信息行业)
-		BusinessScope  string   `json:"businessScope"`  //业务范围(关键词 附加词 排除词)
-		BuyerName      string   `json:"buyerName"`      //采购单位名称
-		AppId          string   `json:"appId"`          //剑鱼10000
-		UserType       string   `path:"userType"`       //用户标签
-		IsCheckFollow  bool     `json:"isCheckFollow"`  //是否查询关注信息(商机管理用户)
-		IsCheckReceive bool     `json:"isCheckReceive"` //是否查询已领取(商机管理用户)
-		UserId         string   `header:"userId"`       //用户id
-		EntId          string   `header:"entId"`        //企业id
-		EntUserId      string   `header:"entUserId"`    //商机管理企业用户id
+		Province       []string `json:"province,optional"`       //省份
+		City           []string `json:"city,optional"`           //城市
+		BuyerClass     []string `json:"buyerClass,optional"`     //客户类型(采购单位行业)
+		Industry       []string `json:"industry,optional"`       //行业分类(信息行业)
+		BusinessScope  string   `json:"businessScope,optional"`  //业务范围(关键词 附加词 排除词)
+		BuyerName      string   `json:"buyerName,optional"`      //采购单位名称
+		AppId          string   `json:"appId"`                   //剑鱼10000
+		UserType       string   `path:"userType"`                //用户标签
+		IsCheckFollow  bool     `json:"isCheckFollow,optional"`  //是否查询关注信息(商机管理用户)
+		IsCheckReceive bool     `json:"isCheckReceive,optional"` //是否查询已领取(商机管理用户)
+		UserId         string   `header:"userId"`                //用户id
+		EntId          string   `header:"entId"`                 //企业id
+		EntUserId      string   `header:"entUserId"`             //商机管理企业用户id
 		//SortRule       int64    `json:"sortRule"`       //排序规则
 		//PageNum        int64    `json:"pageNum"`        //当前页码
 		//PageSize       int64    `json:"pageSize"`       //每页数据量

+ 13 - 13
jyBXBuyer/api/internal/types/types.go

@@ -2,19 +2,19 @@
 package types
 
 type BuyerListReq struct {
-	Province       []string `json:"province"`       //省份
-	City           []string `json:"city"`           //城市
-	BuyerClass     []string `json:"buyerClass"`     //客户类型(采购单位行业)
-	Industry       []string `json:"industry"`       //行业分类(信息行业)
-	BusinessScope  string   `json:"businessScope"`  //业务范围(关键词 附加词 排除词)
-	BuyerName      string   `json:"buyerName"`      //采购单位名称
-	AppId          string   `json:"appId"`          //剑鱼10000
-	UserType       string   `path:"userType"`       //用户标签
-	IsCheckFollow  bool     `json:"isCheckFollow"`  //是否查询关注信息(商机管理用户)
-	IsCheckReceive bool     `json:"isCheckReceive"` //是否查询已领取(商机管理用户)
-	UserId         string   `header:"userId"`       //用户id
-	EntId          string   `header:"entId"`        //企业id
-	EntUserId      string   `header:"entUserId"`    //商机管理企业用户id
+	Province       []string `json:"province,optional"`       //省份
+	City           []string `json:"city,optional"`           //城市
+	BuyerClass     []string `json:"buyerClass,optional"`     //客户类型(采购单位行业)
+	Industry       []string `json:"industry,optional"`       //行业分类(信息行业)
+	BusinessScope  string   `json:"businessScope,optional"`  //业务范围(关键词 附加词 排除词)
+	BuyerName      string   `json:"buyerName,optional"`      //采购单位名称
+	AppId          string   `json:"appId"`                   //剑鱼10000
+	UserType       string   `path:"userType"`                //用户标签
+	IsCheckFollow  bool     `json:"isCheckFollow,optional"`  //是否查询关注信息(商机管理用户)
+	IsCheckReceive bool     `json:"isCheckReceive,optional"` //是否查询已领取(商机管理用户)
+	UserId         string   `header:"userId"`                //用户id
+	EntId          string   `header:"entId"`                 //企业id
+	EntUserId      string   `header:"entUserId"`             //商机管理企业用户id
 }
 
 type CommonResp struct {