bxsubscribe.proto 3.4 KB

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