bxsubscribe.proto 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. syntax = "proto3";
  2. package bxsubscribe;
  3. option go_package="./bxsubscribe";
  4. message SubscribeInfosReq {
  5. int64 pageNum = 1;
  6. int64 pageSize = 2;
  7. string selectTime = 3;
  8. string area = 4;
  9. string city = 5;
  10. string industry = 6;
  11. string buyerClass = 7;
  12. string keyWords = 8;
  13. string subtype = 9;
  14. string userType = 10;//fType:普通用户;vType:超级订阅用户;mType:大会员用户;eType:商机管理用户;
  15. string userId = 11;
  16. string entId = 12;
  17. string appId = 13;
  18. string price = 14;
  19. string fileExists = 15;
  20. string entUserId = 16;
  21. string deptId = 17;
  22. }
  23. message SubscribeInfosResp {
  24. int64 err_code = 1;
  25. string err_msg = 2;
  26. subscribeData data = 3;
  27. }
  28. message subscribeData{
  29. int64 count = 1;
  30. bool hasNextPage = 2;
  31. repeated subscribeInfo list = 3;
  32. }
  33. message subscribeInfo {
  34. string _id = 1;//和推送程序 缓存保持一致
  35. string title = 2;
  36. string area = 3;
  37. string buyerClass = 4;
  38. string subtype = 5;
  39. string industry = 6;
  40. int64 publishTime = 7;
  41. int64 ca_index = 8;
  42. int64 ca_date = 9;
  43. int64 ca_isvisit = 10;
  44. int64 ca_type = 11;
  45. repeated string matchKeys = 12;
  46. string budget = 13;
  47. string bidAmount = 14;
  48. int64 collection = 15;
  49. string buyer = 16;
  50. string projectName = 17;
  51. string winner = 18;
  52. string bidOpenTime = 19;
  53. int64 ca_isvip = 20;
  54. bool ca_fileExists = 21;
  55. }
  56. //
  57. message SomeInfoReq{
  58. string appId = 1;
  59. string userId = 2;
  60. string userType = 3;
  61. }
  62. message SomeInfoResp {
  63. int64 err_code = 1;
  64. string err_msg = 2;
  65. SomeInfo data = 3;
  66. }
  67. message SomeInfo{
  68. bool hasKey = 1;//免费用户和超级订阅是否有订阅词
  69. bool isInGuide = 2;//是否进入向导
  70. int64 isExpire = 3;//超级订阅到期提醒
  71. int64 isOnTail = 4;//超级订阅试用状态
  72. bool isPassCount = 5;//推送数量校验
  73. bool otherFlag = 6;//首次用户推送查询“其他”
  74. bool isRead = 7;//某个通知??是否已读
  75. repeated string industry = 8;//会员订阅的行业
  76. string userId = 9;//用户id
  77. }
  78. //
  79. message StatusResp{
  80. string error_msg =1;
  81. int64 error_code=2;
  82. int64 status = 3;
  83. }
  84. message UpdateSubScribeInfoReq{
  85. map<string,CityList> area = 1; //地区
  86. repeated string buyerclass=2;//采购单位类型
  87. repeated Items items =3;//关键词
  88. repeated string infotype=4;//信息类型
  89. string matchway =5;//匹配方式 1标题 2正文
  90. string projectmatch=6;//项目匹配 1开始 0关闭
  91. string ratemode=7;// 1:实时推送,2:每天9点推送,3:每周推送,4:每月推送 5:每日推送两次
  92. string apppush=8;//app推送 1开启 0关闭
  93. string mailpush=9;//邮箱推送 1开启 0关闭
  94. string mail=10;//邮箱
  95. string otherbuyerclass=11;//匹配未分类类型 1匹配 0不匹配
  96. string userId=12;//用户id
  97. }
  98. //城市
  99. message CityList {
  100. repeated string city =1;
  101. }
  102. //分类
  103. message Items{
  104. string s_item =1;//分类名称
  105. int64 updateTime=2;
  106. repeated Keys a_key=3;
  107. }
  108. //关键词
  109. message Keys {
  110. repeated string key =1;
  111. repeated string notkey=2;
  112. int64 updateTime=3;
  113. int64 matchway=4;
  114. repeated string appendKey=5;
  115. }
  116. service Bxsubscribe {
  117. //获取订阅推送列表
  118. rpc GetSubList(SubscribeInfosReq) returns(SubscribeInfosResp);
  119. //获取订阅推送相关信息
  120. rpc GetSubSomeInfo(SomeInfoReq) returns(SomeInfoResp);
  121. //修改订阅信息接口
  122. rpc UpdateSubScribeInfo(UpdateSubScribeInfoReq)returns(StatusResp);
  123. }