bxsubscribe.proto 3.9 KB

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