bxcore.api 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. syntax = "v1"
  2. info (
  3. title: "剑鱼核心模块" // TODO: add title
  4. desc: "标讯搜索,标讯详情等"// TODO: add description
  5. author: "wangshan"
  6. email: "wangshan@topnet.net.cn"
  7. )
  8. type (
  9. searchReq {
  10. AppId string `header:"appId"`
  11. PageNum int64 `json:"pageNum"`
  12. PageSize int64 `json:"pageSize"`
  13. KeyWords string `json:"keyWords"`
  14. Province string `json:"province"`
  15. City string `json:"city"`
  16. Subtype string `json:"subtype"`
  17. PublishTime string `json:"publishTime"`
  18. SelectType string `json:"selectType"`
  19. Price string `json:"price"`
  20. Industry string `json:"industry"`
  21. BuyerClass string `json:"buyerClass"`
  22. BuyerTel string `json:"buyerTel"`
  23. WinnerTel string `json:"winnerTel"`
  24. ExclusionWords string `json:"exclusionWords"`
  25. FileExists string `json:"fileExists"`
  26. UserType string `path:"userType"`
  27. SecondSearch bool `json:"secondSearch"`
  28. }
  29. //
  30. commonResp {
  31. Err_code int64 `json:"error_code"`
  32. Err_msg string `json:"error_msg"`
  33. Data interface{} `json:"data"`
  34. }
  35. //
  36. searchLimitReq {
  37. AppId string `header:"appId"` //appid
  38. TimeOut int64 `json:"timeOut"` //过滤过期时间
  39. Count int64 `json:"count"` //并发量
  40. Flag int64 `json:"flag"` //开关 1:打开;-1:关闭;-2:重置
  41. Percentage int64 `json:"percentage"` //付费用户占比
  42. SearchType string `path:"searchType"` //get|update|
  43. }
  44. )
  45. service bxcore-api {
  46. @handler searchList
  47. post /jybx/core/:userType/searchList(searchReq) returns (commonResp)
  48. @handler limitSearchContent
  49. post /jybx/core/:searchType/searchLimit(searchLimitReq) returns (commonResp)
  50. }