ソースを参照

Merge branch 'master' of http://192.168.3.207:8080/BaseService/jyMicroservices

wangshan 3 年 前
コミット
b5d5eae35d
2 ファイル変更43 行追加43 行削除
  1. 21 21
      jyBXCore/api/bxcore.api
  2. 22 22
      jyBXCore/api/internal/types/types.go

+ 21 - 21
jyBXCore/api/bxcore.api

@@ -12,21 +12,21 @@ type (
 		AppId          string `header:"appId"`
 		PageNum        int64  `json:"pageNum"`
 		PageSize       int64  `json:"pageSize"`
-		KeyWords       string `json:"keyWords"`
-		Province       string `json:"province"`
-		City           string `json:"city"`
-		Subtype        string `json:"subtype"`
-		PublishTime    string `json:"publishTime"`
-		SelectType     string `json:"selectType"`
-		Price          string `json:"price"`
-		Industry       string `json:"industry"`
-		BuyerClass     string `json:"buyerClass"`
-		BuyerTel       string `json:"buyerTel"`
-		WinnerTel      string `json:"winnerTel"`
-		ExclusionWords string `json:"exclusionWords"`
-		FileExists     string `json:"fileExists"`
-		UserType       string `path:"userType"`
-		SecondSearch   bool   `json:"secondSearch"`
+		KeyWords       string `json:"keyWords,optional"`
+		Province       string `json:"province,optional"`
+		City           string `json:"city,optional"`
+		Subtype        string `json:"subtype,optional"`
+		PublishTime    string `json:"publishTime,optional"`
+		SelectType     string `json:"selectType,optional"`
+		Price          string `json:"price,optional"`
+		Industry       string `json:"industry,optional"`
+		BuyerClass     string `json:"buyerClass,optional"`
+		BuyerTel       string `json:"buyerTel,optional"`
+		WinnerTel      string `json:"winnerTel,optional"`
+		ExclusionWords string `json:"exclusionWords,optional"`
+		FileExists     string `json:"fileExists,optional"`
+		UserType       string `path:"userType,optional"`
+		SecondSearch   bool   `json:"secondSearch,optional"`
 	}
 	//
 	commonResp {
@@ -36,12 +36,12 @@ type (
 	}
 	//
 	searchLimitReq {
-		AppId      string `header:"appId"`      //appid
-		TimeOut    int64  `json:"timeOut"`    //过滤过期时间
-		Count      int64  `json:"count"`      //并发量
-		Flag       int64  `json:"flag"`       //开关 1:打开;-1:关闭;-2:重置
-		Percentage int64  `json:"percentage"` //付费用户占比
-		SearchType string `path:"searchType"` //get|update|
+		AppId      string `header:"appId"`             //appid
+		TimeOut    int64  `json:"timeOut,optional"`    //过滤过期时间
+		Count      int64  `json:"count,optional"`      //并发量
+		Flag       int64  `json:"flag,optional"`       //开关 1:打开;-1:关闭;-2:重置
+		Percentage int64  `json:"percentage,optional"` //付费用户占比
+		SearchType string `path:"searchType"`          //get|update|
 	}
 )
 service bxcore-api {

+ 22 - 22
jyBXCore/api/internal/types/types.go

@@ -2,24 +2,24 @@
 package types
 
 type SearchReq struct {
-	AppId          string `json:"appId"`
+	AppId          string `header:"appId"`
 	PageNum        int64  `json:"pageNum"`
 	PageSize       int64  `json:"pageSize"`
-	KeyWords       string `json:"keyWords"`
-	Province       string `json:"province"`
-	City           string `json:"city"`
-	Subtype        string `json:"subtype"`
-	PublishTime    string `json:"publishTime"`
-	SelectType     string `json:"selectType"`
-	Price          string `json:"price"`
-	Industry       string `json:"industry"`
-	BuyerClass     string `json:"buyerClass"`
-	BuyerTel       string `json:"buyerTel"`
-	WinnerTel      string `json:"winnerTel"`
-	ExclusionWords string `json:"exclusionWords"`
-	FileExists     string `json:"fileExists"`
-	UserType       string `path:"userType"`
-	SecondSearch   bool   `json:"secondSearch"`
+	KeyWords       string `json:"keyWords,optional"`
+	Province       string `json:"province,optional"`
+	City           string `json:"city,optional"`
+	Subtype        string `json:"subtype,optional"`
+	PublishTime    string `json:"publishTime,optional"`
+	SelectType     string `json:"selectType,optional"`
+	Price          string `json:"price,optional"`
+	Industry       string `json:"industry,optional"`
+	BuyerClass     string `json:"buyerClass,optional"`
+	BuyerTel       string `json:"buyerTel,optional"`
+	WinnerTel      string `json:"winnerTel,optional"`
+	ExclusionWords string `json:"exclusionWords,optional"`
+	FileExists     string `json:"fileExists,optional"`
+	UserType       string `path:"userType,optional"`
+	SecondSearch   bool   `json:"secondSearch,optional"`
 }
 
 type CommonResp struct {
@@ -29,10 +29,10 @@ type CommonResp struct {
 }
 
 type SearchLimitReq struct {
-	AppId      string `json:"appId"`      //appid
-	TimeOut    int64  `json:"timeOut"`    //过滤过期时间
-	Count      int64  `json:"count"`      //并发量
-	Flag       int64  `json:"flag"`       //开关 1:打开;-1:关闭;-2:重置
-	Percentage int64  `json:"percentage"` //付费用户占比
-	SearchType string `path:"searchType"` //get|update|
+	AppId      string `header:"appId"`             //appid
+	TimeOut    int64  `json:"timeOut,optional"`    //过滤过期时间
+	Count      int64  `json:"count,optional"`      //并发量
+	Flag       int64  `json:"flag,optional"`       //开关 1:打开;-1:关闭;-2:重置
+	Percentage int64  `json:"percentage,optional"` //付费用户占比
+	SearchType string `path:"searchType"`          //get|update|
 }