bxcore.proto 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. }
  25. message SearchResp {
  26. int64 err_code = 1;
  27. string err_msg = 2;
  28. SearchData data = 3;
  29. }
  30. message SearchData {
  31. int64 count = 1;
  32. string keyWords = 2;
  33. int64 status = 3;
  34. repeated string historyKeys = 4;
  35. repeated SearchList list = 5;
  36. }
  37. message SearchList {
  38. string id = 1;
  39. string area = 2;
  40. string areaUrl = 3;
  41. string buyerClass = 4;
  42. string city = 5;
  43. string detail = 6;
  44. string industry = 7;
  45. string industryUrl = 8;
  46. int64 publishTime = 9;
  47. string subtype = 10;
  48. string subtypeUrl = 11;
  49. bool fileExists = 12;
  50. string title = 13;
  51. bool isCollected = 14;
  52. }
  53. service BxCore {
  54. //标讯搜索结果列表数据
  55. rpc GetSearchList(SearchReq) returns(SearchResp);
  56. }