1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- syntax = "v1"
- info (
- title: "剑鱼核心模块" // TODO: add title
- desc: "标讯搜索,标讯详情等"// TODO: add description
- author: "wangshan"
- email: "wangshan@topnet.net.cn"
- )
- type (
- searchReq {
- AppId string `header:"appId,optional"`
- PageNum int64 `json:"pageNum"`
- PageSize int64 `json:"pageSize"`
- KeyWords string `json:"keyWords,optional"`
- Province string `json:"province,optional"`
- City string `json:"city,optional"`
- Subtype string `json:"subtype,optional"`
- Toptype string `json:"toptype,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"`
- SplitKeywords string `json:"splitKeywords,optional"`
- }
- //
- commonResp {
- Err_code int64 `json:"error_code"`
- Err_msg string `json:"error_msg"`
- Data interface{} `json:"data"`
- }
- //
- searchLimitReq {
- AppId string `header:"appId,optional"` //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 {
- @handler searchList
- post /jybx/core/:userType/searchList(searchReq) returns (commonResp)
- @handler limitSearchContent
- post /jybx/core/:searchType/searchLimit(searchLimitReq) returns (commonResp)
- }
|