bxcore.proto 2.8 KB

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