bxbase.api 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. //招标信息是否被收藏
  10. BCAction {
  11. UserId string `header:"userId"`
  12. Bids []string `json:"bids"`
  13. Baction string `json:"baction"` //R:移除收藏;C:收藏
  14. }
  15. //标签新增或删除
  16. LabelAction {
  17. UserId string `header:"userId"`
  18. Lids string `json:"lids"` //标签ids
  19. Lname string `json:"lname"` //标签名称
  20. Binfo []string `json:"binfo,optional"` //收藏的招标信息
  21. Laction string `json:"laction"` //用户行为:S添加或绑定标签;D删除标签
  22. }
  23. //获取标签
  24. GetLabelAction {
  25. UserId string `header:"userId"`
  26. }
  27. //获取收藏列表
  28. List {
  29. UserId string `header:"userId"`
  30. Pagenum int64 `json:"pagenum"` //页数
  31. Label string `json:"label"` //标签 用,分隔开
  32. SelectTime string `json:"selectTime,optional"` //收藏时间
  33. Buyerclass string `json:"buyerclass,optional"` //采购单位 用,分隔开
  34. BuyerPhone int64 `json:"buyerPhone,optional"` //是否需要采购单位联系方式 1:需要 -1:不需要 0:未选中
  35. WinnerPhone int64 `json:"winnerPhone,optional"` //是否需要中标单位联系方式 1:需要 -1:不需要 0:未选中
  36. Pagesize int64 `json:"pagesize"` //每页展示数量
  37. }
  38. //新增标签
  39. AddLabel {
  40. UserId string `header:"userId"`
  41. Name string `json:"name"`
  42. }
  43. //招标信息是否被收藏
  44. IsCollAction {
  45. UserId string `header:"userId"`
  46. Bids string `json:"bids"`
  47. Label string `json:"label,optional"`
  48. }
  49. //获取筛选条件
  50. ShowSearchScreen {
  51. UserId string `header:"userId"`
  52. Type string `json:"type,optional"`
  53. }
  54. //删除筛选条件
  55. DelSearchScreen {
  56. Id string `json:"id"`
  57. }
  58. //保存筛选条件
  59. AddSearchScreen {
  60. UserId string `header:"userId"`
  61. Type string `header:"type,,optional"`
  62. Keywords string `json:"searchvalue"` //搜索词
  63. Publishtime string `json:"publishtime,optional"` //发布时间
  64. City string `json:"city,optional"` //城市
  65. Area string `json:"area,optional"` //地区
  66. Subtype string `json:"subtype,optional"` //信息类型
  67. Minprice string `json:"minprice,optional"` //最低价格
  68. Maxprice string `json:"maxprice,optional"` //最高价格
  69. Industry string `json:"industry,optional"` //选中的行业
  70. SelectType string `json:"selectType,optional"` //标题 or 全文
  71. Buyerclass string `json:"buyerclass,optional"` //采购单位行业
  72. Hasbuyertel string `json:"buyertel,optional"` //是否有采购电话
  73. Haswinnertel string `json:"winnertel,optional"` //是否有中标电话
  74. FileExists string `json:"fileExists,optional"` //附件
  75. Notkey string `json:"notkey,optional"` //排除词
  76. Tabularflag string `json:"tabularflag,optional"`
  77. InKey string `json:"inkey"`
  78. }
  79. //公共接口返回
  80. CommonRes {
  81. Err_code int `json:"error_code"`
  82. Err_msg string `json:"error_msg"`
  83. Data interface{} `json:"data"`
  84. }
  85. )
  86. service bxbase-api {
  87. //招标信息是否被收藏
  88. @handler IsCollAction
  89. post /jybx/base/isColled (IsCollAction) returns(CommonRes)
  90. //招标信息收藏
  91. @handler BCAction
  92. post /jybx/base/collAction (BCAction) returns(CommonRes)
  93. //标签新增或删除
  94. @handler LabelAction
  95. post /jybx/base/label (LabelAction) returns(CommonRes)
  96. //获取标签
  97. @handler GetLabelAction
  98. post /jybx/base/getLabel (GetLabelAction) returns(CommonRes)
  99. //获取收藏列表
  100. @handler List
  101. post /jybx/base/collList (List) returns(CommonRes)
  102. //添加标签
  103. @handler AddLabel
  104. post /jybx/base/addLabel (AddLabel) returns(CommonRes)
  105. //展示筛选条件
  106. @handler ShowSearchScreen
  107. post /jybx/base/showSearchScreen (ShowSearchScreen) returns(CommonRes)
  108. //添加筛选条件
  109. @handler AddSearchScreen
  110. post /jybx/base/addSearchScreen (AddSearchScreen) returns(CommonRes)
  111. //校验筛选条件
  112. @handler CheckSearchScreen
  113. post /jybx/base/checkSearchScreen (AddSearchScreen) returns(CommonRes)
  114. //删除筛选条件
  115. @handler DelSearchScreen
  116. post /jybx/base/delSearchScreen (DelSearchScreen) returns(CommonRes)
  117. }