bxcore.api 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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,optional"`
  11. PageNum int64 `json:"pageNum"`
  12. PageSize int64 `json:"pageSize"`
  13. KeyWords string `json:"keyWords,optional"`
  14. Province string `json:"province,optional"`
  15. City string `json:"city,optional"`
  16. Subtype string `json:"subtype,optional"`
  17. Toptype string `json:"toptype,optional"`
  18. PublishTime string `json:"publishTime,optional"`
  19. SelectType string `json:"selectType,optional"`
  20. Price string `json:"price,optional"`
  21. Industry string `json:"industry,optional"`
  22. BuyerClass string `json:"buyerClass,optional"`
  23. BuyerTel string `json:"buyerTel,optional"`
  24. WinnerTel string `json:"winnerTel,optional"`
  25. ExclusionWords string `json:"exclusionWords,optional"`
  26. FileExists string `json:"fileExists,optional"`
  27. UserType string `path:"userType,optional"`
  28. SplitKeywords string `json:"splitKeywords,optional"`
  29. }
  30. //
  31. commonResp {
  32. Err_code int64 `json:"error_code"`
  33. Err_msg string `json:"error_msg"`
  34. Data interface{} `json:"data"`
  35. }
  36. //
  37. searchLimitReq {
  38. AppId string `header:"appId,optional"` //appid
  39. TimeOut int64 `json:"timeOut,optional"` //过滤过期时间
  40. Count int64 `json:"count,optional"` //并发量
  41. Flag int64 `json:"flag,optional"` //开关 1:打开;-1:关闭;-2:重置
  42. Percentage int64 `json:"percentage,optional"` //付费用户占比
  43. SearchType string `path:"searchType"` //get|update|
  44. }
  45. )
  46. service bxcore-api {
  47. @handler searchList
  48. post /jybx/core/:userType/searchList(searchReq) returns (commonResp)
  49. @handler limitSearchContent
  50. post /jybx/core/:searchType/searchLimit(searchLimitReq) returns (commonResp)
  51. }