bxcore.proto 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. string interceptKeywords= 9;
  43. }
  44. message SearchList {
  45. string id = 1;
  46. string area = 2;
  47. string areaUrl = 3;
  48. string buyerClass = 4;
  49. string city = 5;
  50. string detail = 6;
  51. string industry = 7;
  52. string industryUrl = 8;
  53. int64 publishTime = 9;
  54. string subtype = 10;
  55. string subtypeUrl = 11;
  56. bool fileExists = 12;
  57. string title = 13;
  58. bool isCollected = 14;
  59. int64 bidamount = 15;//中标金额
  60. int64 budget = 16;//预算
  61. string projectName = 17;//项目名称
  62. string buyer = 18;//采购单位
  63. string winner = 19;//中标企业
  64. int64 bidopenTime = 20;//开标时间
  65. PInfo projectInfo = 21;//拟建项目信息
  66. string projectCode = 22;//项目代码
  67. string site = 23;//网站名称
  68. string spiderCode = 24;//网站代码
  69. }
  70. //
  71. message PInfo {
  72. string approveCode =1;//项目代码
  73. string approveContent = 2;//项目内容
  74. string approveDept = 3;//审批部门
  75. string approveStatus = 4 ;//审批状态
  76. string approveTime = 5;//审批时间
  77. string projectType = 6;//审批类型
  78. string approveNumber = 7;//
  79. }
  80. //
  81. message SearchLimitReq {
  82. string appid = 1;
  83. int64 timeOut = 2;
  84. int64 count = 3;
  85. int64 flag = 4;
  86. int64 percentage = 5;
  87. string userId = 6;
  88. string searchType = 7;
  89. }
  90. //
  91. message SearchLimitResp {
  92. int64 err_code = 1;
  93. string err_msg = 2;
  94. string data = 3;
  95. }
  96. service BxCore {
  97. //标讯搜索结果列表数据
  98. rpc GetSearchList(SearchReq) returns(SearchResp);
  99. //标讯搜索限制内容
  100. rpc SearchLimit(SearchLimitReq) returns(SearchLimitResp);
  101. }