bxcore.api 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. UserType string `path:"userType,optional"`
  11. AppId string `header:"appId"`
  12. UserId string `header:"userId,optional"`
  13. Phone string `header:"phone,optional"`
  14. NewUserId string `header:"newUserId,optional"`
  15. EntId int64 `header:"entId,optional"`
  16. EntUserId int64 `header:"entUserId,optional"`
  17. PageNum int64 `json:"pageNum,optional"`
  18. PageSize int64 `json:"pageSize,optional"`
  19. Province string `json:"province,optional"`
  20. City string `json:"city,optional"`
  21. Subtype string `json:"subtype,optional"`
  22. TopType string `json:"toptype,optional"`
  23. PublishTime string `json:"publishTime,optional"`
  24. SelectType string `json:"selectType,optional"`
  25. Price string `json:"price,optional"`
  26. Industry string `json:"industry,optional"`
  27. BuyerClass string `json:"buyerClass,optional"`
  28. BuyerTel string `json:"buyerTel,optional"`
  29. WinnerTel string `json:"winnerTel,optional"`
  30. FileExists string `json:"fileExists,optional"`
  31. SearchGroup int64 `json:"searchGroup,optional"`
  32. SearchMode int64 `json:"searchMode,optional"`
  33. WordsMode int64 `json:"wordsMode,optional"`
  34. KeyWords string `json:"keyWords,optional"`
  35. AdditionalWords string `json:"additionalWords,optional"`
  36. ExclusionWords string `json:"exclusionWords,optional"`
  37. BidField string `json:"bidField,optional"` //医疗领域化信息
  38. }
  39. //
  40. commonResp {
  41. Err_code int64 `json:"error_code"`
  42. Err_msg string `json:"error_msg"`
  43. Data interface{} `json:"data"`
  44. }
  45. //
  46. searchLimitReq {
  47. AppId string `header:"appId,optional"` //appid
  48. TimeOut int64 `json:"timeOut,optional"` //过滤过期时间
  49. Count int64 `json:"count,optional"` //并发量
  50. Flag int64 `json:"flag,optional"` //开关 1:打开;-1:关闭;-2:重置
  51. Percentage int64 `json:"percentage,optional"` //付费用户占比
  52. SearchType string `path:"searchType"` //get|update|
  53. }
  54. )
  55. service bxcore-api {
  56. @handler searchList
  57. post /jybx/core/:userType/searchList(searchReq) returns (commonResp)
  58. @handler limitSearchContent
  59. post /jybx/core/:searchType/searchLimit(searchLimitReq) returns (commonResp)
  60. }