bxbase.proto 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. syntax = "proto3";
  2. package bxcol;
  3. option go_package = "./bxbase";
  4. message AddlabelReq {
  5. string userId = 1;
  6. string name = 2;
  7. string appId = 3;
  8. }
  9. message AddlabelRes {
  10. int64 err_code = 1;
  11. string err_msg = 2;
  12. string labid = 3;
  13. }
  14. message GetLabelActionReq {
  15. string userId = 1;
  16. string appId = 2;
  17. }
  18. message GetLabelActionRes {
  19. int64 err_code = 1;
  20. string err_msg = 2;
  21. repeated LabelByUser labels = 3;
  22. }
  23. message LabelByUser{
  24. string lid = 1;
  25. string lname = 2;
  26. int64 lcount = 3;
  27. }
  28. message LabelActionReq {
  29. string userId = 1;
  30. string lids = 2;
  31. string lname = 3;
  32. repeated string binfo = 4;
  33. string laction = 5;
  34. string appId = 6;
  35. }
  36. message LabelActionRes {
  37. int64 err_code = 1;
  38. string err_msg = 2;
  39. bool status = 3;
  40. }
  41. message BCActionReq {
  42. string userId = 1;
  43. repeated string bids = 2;
  44. string baction = 3;
  45. string appId = 4;
  46. }
  47. message IsCollActionReq {
  48. string userId = 1;
  49. string bids = 2;
  50. string label = 3;
  51. string appId = 4;
  52. }
  53. message IsCollActionRes {
  54. int64 err_code = 1;
  55. string err_msg = 2;
  56. IData data = 3;
  57. }
  58. message IData {
  59. bool iscoll = 1;
  60. repeated Labels labels = 2;
  61. repeated string bids = 3;
  62. }
  63. message Labels {
  64. string id = 1;
  65. string labelname = 2;
  66. }
  67. message ListReq {
  68. string userId = 1;
  69. string bids = 2;
  70. string selectTime = 3;
  71. string buyerclass = 4;
  72. int64 pagenum = 5;
  73. int64 buyerPhone = 6;
  74. int64 winnerPhone = 7;
  75. int64 pagesize = 8;
  76. string label = 9;
  77. string appId = 10;
  78. }
  79. message ListRes {
  80. int64 err_code = 1;
  81. string err_msg = 2;
  82. ColList ldata = 3;
  83. }
  84. message ColList {
  85. int64 count = 1;
  86. bool haveNextPage = 2;
  87. repeated ColData res = 3;
  88. int64 pagesize = 4;
  89. }
  90. message ColData {
  91. string id = 1;
  92. string title = 2;
  93. string area = 3;
  94. string buyerclass = 4;
  95. string type = 5;
  96. string s_subscopeclass = 6;
  97. int64 publishtime = 7;
  98. string budget = 8;
  99. string bidamount = 9;
  100. string buyer = 10;
  101. string s_winner = 11;
  102. int64 bidopentime = 12;
  103. }
  104. message ShowSearchReq{
  105. string userId = 1;
  106. string type = 2;
  107. string appId = 3;
  108. }
  109. message ShowSearchRes{
  110. int64 err_code = 1;
  111. string err_msg = 2;
  112. repeated ListSearchRes data = 3;
  113. }
  114. message ListSearchRes{
  115. string userId =1;
  116. string type =2;
  117. string searchvalue =3; //搜索词
  118. string publishtime=4; //发布时间
  119. string area =5; //地区
  120. string subtype =6; //信息类型
  121. string minprice =7; //最低价格
  122. string maxprice =8;//最高价格
  123. string industry =9;//选中的行业
  124. string selectType =10;//标题 or 全文
  125. string buyerclass =11;//采购单位行业
  126. string buyertel =12;//是否有采购电话
  127. string winnertel =13;//是否有中标电话
  128. string fileExists =14;//附件
  129. string notkey =15;//排除词
  130. string city=16;
  131. string id =17;
  132. bool isPay =18;
  133. string tabularflag =19;
  134. }
  135. message AddSearchReq{
  136. string userId =1;
  137. string type =2;
  138. string keywords =3; //搜索词
  139. string publishTime=4; //发布时间
  140. string area =5; //地区
  141. string subtype =6; //信息类型
  142. string minPrice =7; //最低价格
  143. string maxPrice =8;//最高价格
  144. string industry =9;//选中的行业
  145. string selectType =10;//标题 or 全文
  146. string buyerClass =11;//采购单位行业
  147. string hasBuyerTel =12;//是否有采购电话
  148. string hasWinnerTel =13;//是否有中标电话
  149. string fileExists =14;//附件
  150. string notKey =15;//排除词
  151. string city=16;
  152. string inKey =17;
  153. string appId = 18;
  154. }
  155. message DelSearchReq{
  156. string id = 1;
  157. string userId = 2;
  158. string appId = 3;
  159. }
  160. //首页最新招标信息Req
  161. message NewestBiddingReq{
  162. string city = 1;
  163. int64 isSearch = 2;
  164. string userId = 3;
  165. string appId = 4;
  166. string entUserId = 5;
  167. }
  168. //首页最新招标信息Resp
  169. message NewsetBiddingResp{
  170. int64 err_code = 1;
  171. string err_msg = 2;
  172. NewsetBidding data = 3;
  173. }
  174. message NewsetBidding{
  175. bool isVip = 1;//是否超级订阅用户
  176. bool hasSubKeys = 2;//是否有订阅词
  177. bool hasHSKeys = 3;//是否有搜索历史
  178. int64 count = 4;//数据长度
  179. repeated newestList list = 5;//数据
  180. repeated string history = 6;//历史数据
  181. string subFlag = 7;//当前用户订阅信息属性:m:大会员;e:商机管理;v:VIP;f:普通用户
  182. }
  183. //
  184. message newestList {
  185. string area = 1;//省份
  186. string city = 2;//城市
  187. int64 bidamount = 3;//中标金额
  188. int64 budget = 4;//预算
  189. string buyerclass = 5;//采购单位类型
  190. string matchkeys = 6;//订阅匹配信息
  191. int64 publishTime = 7;//发布时间
  192. string industry = 8;//行业
  193. string title = 9;//标题
  194. string subtype = 10;//
  195. string appId = 11;
  196. string id = 12;//招标信息id
  197. bool fileExists = 13;//是否有附件
  198. bool isCol = 14;//是否收藏
  199. string site = 15;//网站名称
  200. string spiderCode = 16;//网站代码
  201. }
  202. //公共返回
  203. message CommonRes {
  204. int64 err_code = 1;
  205. string err_msg = 2;
  206. }
  207. //公共返回
  208. message CheckRes {
  209. int64 err_code = 1;
  210. string err_msg = 2;
  211. string data = 3;
  212. }
  213. //servie
  214. service bxbase {
  215. //新增标签
  216. rpc Addlabel(AddlabelReq) returns(AddlabelRes);
  217. //获取标签
  218. rpc GetLabelAction(GetLabelActionReq) returns(GetLabelActionRes);
  219. //标签新增或删除
  220. rpc LabelAction(LabelActionReq) returns(LabelActionRes);
  221. //招标信息收藏
  222. rpc BCAction(BCActionReq) returns(LabelActionRes);
  223. //招标信息是否被收藏
  224. rpc IsCollAction(IsCollActionReq) returns(IsCollActionRes);
  225. //获取收藏列表
  226. rpc List(ListReq) returns(ListRes);
  227. //获取筛选列表
  228. rpc ShowSearch(ShowSearchReq) returns(ShowSearchRes);
  229. //添加删选列表
  230. rpc AddSearch(AddSearchReq) returns(CommonRes);
  231. //修改筛选列表
  232. rpc CheckSearch(AddSearchReq) returns(CheckRes);
  233. //删除筛选列表
  234. rpc DelSearch(DelSearchReq) returns(CommonRes);
  235. //首页最新招标信息
  236. rpc NewestBidding(NewestBiddingReq)returns(NewsetBiddingResp);
  237. }