bxcore.api 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. AccountId string `header:"accountId,optional"` //账户id
  39. PositionType string `header:"positionType,optional"` //职位类型 0个人 1企业
  40. PositionId string `header:"positionId,optional"` //职位id
  41. MgoUserId string `header:"mgoUserId,optional"` //原userId
  42. }
  43. //
  44. commonResp {
  45. Err_code int64 `json:"error_code"`
  46. Err_msg string `json:"error_msg"`
  47. Data interface{} `json:"data"`
  48. }
  49. //
  50. searchLimitReq {
  51. AppId string `header:"appId,optional"` //appid
  52. TimeOut int64 `json:"timeOut,optional"` //过滤过期时间
  53. Count int64 `json:"count,optional"` //并发量
  54. Flag int64 `json:"flag,optional"` //开关 1:打开;-1:关闭;-2:重置
  55. Percentage int64 `json:"percentage,optional"` //付费用户占比
  56. SearchType string `path:"searchType"` //get|update|
  57. }
  58. )
  59. service bxcore-api {
  60. @handler searchList
  61. post /jybx/core/:userType/searchList(searchReq) returns (commonResp)
  62. @handler limitSearchContent
  63. post /jybx/core/:searchType/searchLimit(searchLimitReq) returns (commonResp)
  64. }