bxcore.proto 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. syntax = "proto3";
  2. package bxcore;
  3. option go_package="./bxcore";
  4. message SearchReq {
  5. string appId = 1;//剑鱼默认10000
  6. int64 pageNum = 2;//当前页码
  7. int64 pageSize = 3;//每页数量
  8. string keyWords = 4;//关键词
  9. string province = 5;//省份
  10. string city = 6;//城市
  11. string subtype = 7;//信息类型-二级
  12. string publishTime = 8;//发布时间
  13. string selectType = 9;//搜索范围:标题;正文等
  14. string price = 10;//价格
  15. string industry = 11;//行业
  16. string buyerClass = 12;//采购单位类型
  17. string buyerTel = 13;//采购单位联系方式
  18. string winnerTel = 14;//中标单位联系方式
  19. string exclusionWords = 15;//排除词
  20. string fileExists = 16;//是否有附件
  21. string userId = 17;
  22. string entId = 18;
  23. string userType = 19;//用户状态 fType:免费用户 pType:付费用户 vType:超级订阅用户 mType:大会员用户 eType:商机管理用户
  24. string splitKeywords = 20;//分词结果
  25. string platform = 21;//请求平台
  26. string toptype = 22;//信息类型-一级分类
  27. }
  28. message SearchResp {
  29. int64 err_code = 1;
  30. string err_msg = 2;
  31. SearchData data = 3;
  32. }
  33. message SearchData {
  34. int64 count = 1;
  35. string keyWords = 2;
  36. int64 isLimit = 3;
  37. repeated string historyKeys = 4;
  38. repeated SearchList list = 5;
  39. int64 totalPage = 6;
  40. string interceptWord = 7;
  41. int64 interceptLimit = 8;
  42. }
  43. message SearchList {
  44. string id = 1;
  45. string area = 2;
  46. string areaUrl = 3;
  47. string buyerClass = 4;
  48. string city = 5;
  49. string detail = 6;
  50. string industry = 7;
  51. string industryUrl = 8;
  52. int64 publishTime = 9;
  53. string subtype = 10;
  54. string subtypeUrl = 11;
  55. bool fileExists = 12;
  56. string title = 13;
  57. bool isCollected = 14;
  58. int64 bidamount = 15;//中标金额
  59. int64 budget = 16;//预算
  60. string projectName = 17;//项目名称
  61. string buyer = 18;//采购单位
  62. string winner = 19;//中标企业
  63. int64 bidopenTime = 20;//开标时间
  64. PInfo projectInfo = 21;//拟建项目信息
  65. string projectCode = 22;//项目代码
  66. string site = 23;//网站名称
  67. string spiderCode = 24;//网站代码
  68. }
  69. //
  70. message PInfo {
  71. string approveCode =1;//项目代码
  72. string approveContent = 2;//项目内容
  73. string approveDept = 3;//审批部门
  74. string approveStatus = 4 ;//审批状态
  75. string approveTime = 5;//审批时间
  76. string projectType = 6;//审批类型
  77. string approveNumber = 7;//
  78. }
  79. //
  80. message SearchLimitReq {
  81. string appid = 1;
  82. int64 timeOut = 2;
  83. int64 count = 3;
  84. int64 flag = 4;
  85. int64 percentage = 5;
  86. string userId = 6;
  87. string searchType = 7;
  88. }
  89. //
  90. message SearchLimitResp {
  91. int64 err_code = 1;
  92. string err_msg = 2;
  93. string data = 3;
  94. }
  95. service BxCore {
  96. //标讯搜索结果列表数据
  97. rpc GetSearchList(SearchReq) returns(SearchResp);
  98. //标讯搜索限制内容
  99. rpc SearchLimit(SearchLimitReq) returns(SearchLimitResp);
  100. }