bxcore.api 2.9 KB

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