bxbuyer.proto 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. int64 PositionType = 21;// 职位类型 0个人 1企业
  23. int64 PositionId = 22;//职位id
  24. int64 AccountId = 23;//账户id
  25. string MgoUserId = 24;//原userId
  26. int64 NewUserId = 27;//base_user_id
  27. int64 EntAccountId = 28;//企业账户id
  28. string Phone = 29;
  29. }
  30. message BuyerListResp {
  31. int64 err_code = 1;
  32. string err_msg = 2;
  33. BuyerData data = 3;
  34. }
  35. message BuyerData {
  36. int64 count = 1;
  37. repeated BuyerList list = 2;
  38. }
  39. message BuyerList {
  40. string buyer = 1;//采购单位名称
  41. string province = 2;//省份
  42. string city = 3;//城市
  43. bool isFollowed = 4;//是否关注
  44. bool isReceived = 5;//是否已领取
  45. string recId = 6;//领取id
  46. string buyerClass = 7;// 采购单位类型
  47. int64 biddingCount = 8;// 招标动态数量
  48. int64 contactCount = 9;// 历史联系人数量
  49. int64 projectCount = 10;// 采购项目数量
  50. float bidAmountCount = 11;// 采购规模
  51. string seo_id = 12; //seoid
  52. }
  53. message relatesInformationReq {
  54. int64 biddingCount = 1;
  55. int64 buyerCount = 2;
  56. string buyer = 3;
  57. string area = 4;
  58. string city = 5;
  59. int64 positionId = 6; // 职位id
  60. int64 positionType = 7;// 职位类型 0个人 1企业
  61. string phone = 8 ;// 手机号
  62. }
  63. //
  64. message relatesInformationResp{
  65. int64 err_code = 1;
  66. string err_msg = 2;
  67. relatesInformation data = 3;
  68. }
  69. message relatesInformation {
  70. repeated infoList buyerList = 1;//采购单位信息
  71. repeated infoList biddingList = 2;//类似采购单位招标信息
  72. }
  73. //
  74. message infoList {
  75. string name = 1;//采购单位名称||信息标题
  76. string id = 2;//信息类型id
  77. string publishTime = 3;
  78. }
  79. // 采购单位搜索获取补充信息
  80. message BuyerSupplyInfoReq{
  81. string appId = 1;//剑鱼默认10000
  82. int64 positionId = 2; // 职位id
  83. int64 positionType = 3;// 职位类型 0个人 1企业
  84. string phone = 4 ;// 手机号
  85. repeated string buyers = 5;// 采购单位名称
  86. }
  87. message BuyerSupplyResp {
  88. int64 err_code = 1;
  89. string err_msg = 2;
  90. repeated SupplyData data = 3;
  91. }
  92. message SupplyData {
  93. int64 biddingCount = 1;// 招标动态数量
  94. int64 contactCount = 2;// 历史联系人数量
  95. int64 projectCount = 3;// 采购项目数量
  96. float bidAmountCount = 4;// 采购规模
  97. string buyer = 5;//采购单位名词
  98. }
  99. service Bxbuyer {
  100. //采购单位搜索
  101. rpc BuyerList(BuyerListReq) returns(BuyerListResp);
  102. // 采购单位搜索补充信息 招标动态数量 、历史联系人数量、项目数量、采购规模
  103. rpc BuyerSupplyInfo(BuyerSupplyInfoReq) returns(BuyerSupplyResp);
  104. //采购单位画像 关联信息
  105. rpc RelatesInfo(relatesInformationReq) returns(relatesInformationResp);
  106. }