瀏覽代碼

feat:标讯核心模块-搜索api

wangshan 3 年之前
父節點
當前提交
39cc2cff5e
共有 1 個文件被更改,包括 29 次插入15 次删除
  1. 29 15
      jyBXCore/api/bxcore.api

+ 29 - 15
jyBXCore/api/bxcore.api

@@ -2,24 +2,38 @@
 syntax = "v1"
 syntax = "v1"
 
 
 info (
 info (
-	title: // TODO: add title
-	desc: // TODO: add description
+	title: "剑鱼核心模块" // TODO: add title
+	desc: "标讯搜索,标讯详情等"// TODO: add description
 	author: "wangshan"
 	author: "wangshan"
 	email: "wangshan@topnet.net.cn"
 	email: "wangshan@topnet.net.cn"
 )
 )
 
 
-type request {
-	// TODO: add members here and delete this comment
-}
-
-type response {
-	// TODO: add members here and delete this comment
-}
-
+type (
+	searchReq {
+		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"`
+	}
+	//
+	commonResp {
+		Err_code int64       `json:"error_code"`
+		Err_msg  string      `json:"error_msg"`
+		Data     interface{} `json:"data"`
+	}
+)
 service bxcore-api {
 service bxcore-api {
-	@handler GetUser // TODO: set handler name and delete this comment
-	get /users/id/:userId(request) returns(response)
-
-	@handler CreateUser // TODO: set handler name and delete this comment
-	post /users/create(request)
+	@handler searchList
+	post /jybx/core/:userType/searchList(searchReq) returns (commonResp)
 }
 }