bxbuyer.proto 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. syntax = "proto3";
  2. package bxbuyer;
  3. option go_package = "./bxbuyer";
  4. message BuyerListReq {
  5. string appId = 1;//剑鱼默认10000
  6. int64 pageNum = 2;//当前页码
  7. int64 pageSize = 3;//每页数量
  8. string buyerName = 4;//采购单位名称
  9. repeated string province = 5;//省份
  10. repeated string city = 6;//城市
  11. int64 sortRule = 7;//排序规则
  12. bool isCheckFollow = 8;//是否查询关注信息(商机管理用户)
  13. bool isCheckReceive = 9;//是否查询已领取(商机管理用户)
  14. repeated string buyerClass = 10;//采购单位类型
  15. string userId = 11;
  16. string userType = 12;//用户状态 fType:免费用户 pType:付费用户 vType:超级订阅用户 mType:大会员用户 eType:商机管理用户
  17. string platform = 13;//请求平台
  18. string entId = 14;//企业id
  19. string entUserId = 15;//商机管理用户id
  20. string pageSource = 16;// 来源 search-搜索 index-首页
  21. int64 isContact = 17;// 是否有联系人:0-全部; 1-有 ;2-无
  22. }
  23. message BuyerListResp {
  24. int64 err_code = 1;
  25. string err_msg = 2;
  26. BuyerData data = 3;
  27. }
  28. message BuyerData {
  29. int64 count = 1;
  30. repeated BuyerList list = 2;
  31. }
  32. message BuyerList {
  33. string buyer = 1;//采购单位名称
  34. string province = 2;//省份
  35. string city = 3;//城市
  36. bool isFollowed = 4;//是否关注
  37. bool isReceived = 5;//是否已领取
  38. string recId = 6;//领取id
  39. string buyerClass = 7;// 采购单位类型
  40. int64 biddingCount = 8;// 招标动态数量
  41. int64 contactCount = 9;// 历史联系人数量
  42. int64 projectCount = 10;// 采购项目数量
  43. float bidAmountCount = 11;// 采购规模
  44. string seo_id =12; //seoid
  45. }
  46. message relatesInformationReq {
  47. int64 biddingCount = 1;
  48. int64 buyerCount=2;
  49. string buyer = 3;
  50. string area = 4;
  51. string city = 5;
  52. int64 positionId = 6; // 职位id
  53. int64 positionType =7;// 职位类型 0个人 1企业
  54. string phone = 8 ;// 手机号
  55. }
  56. //
  57. message relatesInformationResp{
  58. int64 err_code = 1;
  59. string err_msg = 2;
  60. relatesInformation data = 3;
  61. }
  62. message relatesInformation {
  63. repeated infoList buyerList =1;//采购单位信息
  64. repeated infoList biddingList = 2;//类似采购单位招标信息
  65. }
  66. //
  67. message infoList {
  68. string name =1;//采购单位名称||信息标题
  69. string id = 2;//信息类型id
  70. string publishTime = 3;
  71. }
  72. // 采购单位搜索获取补充信息
  73. message BuyerSupplyInfoReq{
  74. string appId = 1;//剑鱼默认10000
  75. int64 positionId = 2; // 职位id
  76. int64 positionType =3;// 职位类型 0个人 1企业
  77. string phone = 4 ;// 手机号
  78. repeated string buyers = 5;// 采购单位名称
  79. }
  80. message BuyerSupplyResp {
  81. int64 err_code = 1;
  82. string err_msg = 2;
  83. repeated SupplyData data = 3;
  84. }
  85. message SupplyData {
  86. int64 biddingCount = 1;// 招标动态数量
  87. int64 contactCount = 2;// 历史联系人数量
  88. int64 projectCount = 3;// 采购项目数量
  89. float bidAmountCount = 4;// 采购规模
  90. string buyer = 5;//采购单位名词
  91. }
  92. service Bxbuyer {
  93. //采购单位搜索
  94. rpc BuyerList(BuyerListReq) returns(BuyerListResp);
  95. // 采购单位搜索补充信息 招标动态数量 、历史联系人数量、项目数量、采购规模
  96. rpc BuyerSupplyInfo(BuyerSupplyInfoReq) returns(BuyerSupplyResp);
  97. //采购单位画像 关联信息
  98. rpc RelatesInfo(relatesInformationReq) returns(relatesInformationResp);
  99. }