|
@@ -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)
|
|
}
|
|
}
|