statistics.proto 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. syntax = "proto3";
  2. package api.statistics;
  3. //import "google/api/annotations.proto";
  4. //import "google/protobuf/struct.proto";
  5. import "google/protobuf/empty.proto";
  6. import "api/common/common.proto";
  7. option go_package = "git.ikuban.com/server/pw-protobuf/api/statistics;statistics";
  8. option java_multiple_files = true;
  9. option java_package = "api.statistics";
  10. service Statistics {
  11. // 观看用户主页
  12. rpc LookPerson (PersonMessage) returns (google.protobuf.Empty);
  13. // 关注用户
  14. rpc LikePerson (PersonMessage) returns (google.protobuf.Empty);
  15. // 取关用户
  16. rpc UnLikePerson (PersonMessage) returns (google.protobuf.Empty);
  17. // 获取喜欢以及访问统计信息
  18. rpc GetLookAndLikeStatisticsMessage (GetLookAndLikeStatisticsMessageRequest) returns (LookAndLikeMessageReply);
  19. // 获取访问统计信息
  20. rpc GetLookStatisticsMessage (common.PersonParam) returns (LookMessageReply);
  21. // 减少"喜欢我的"的未读数
  22. rpc ReduceLikeUnreadNum (PersonMessage) returns (google.protobuf.Empty);
  23. // 解锁"看过我的"的记录
  24. rpc UnlockLookRecord (UnlockLookRecordRequest) returns (google.protobuf.Empty);
  25. // 查看看过我的列表
  26. rpc FindLookList (GetLookAndLikeListRequest) returns (LookAndLikeListReply);
  27. // 查看我喜欢的列表
  28. rpc FindLikeList (GetLookAndLikeListRequest) returns (LookAndLikeListReply);
  29. // 查看喜欢我的列表
  30. rpc FindLikedList (GetLookAndLikeListRequest) returns (LookAndLikeListReply);
  31. // 接待用户统计
  32. rpc ReceptionPerson (ReceptionMessage) returns (google.protobuf.Empty);
  33. // 接待员今日收益统计
  34. rpc AddTodayProfit (AddTodayProfitRequest) returns (google.protobuf.Empty);
  35. // 获取消息
  36. rpc GetReceptionMsg (common.PartnerIDParam) returns (ReceptionMsg);
  37. // 获取消息
  38. rpc GetTodayProfit (common.PartnerIDParam) returns (TodayProfitMsg);
  39. // 获取我是否喜欢(关注)该用户
  40. rpc GetIsLike (PersonMessage) returns (common.IsLike);
  41. // 用户给接待员发信息统计
  42. rpc UserSendToPartner (common.PartnerIDParam) returns (google.protobuf.Empty);
  43. // 接待员给用户回复统计
  44. rpc PartnerReplyUser (PartnerReplyUserRequest) returns (google.protobuf.Empty);
  45. // 获取接待员的统计信息
  46. rpc GetPartnerReplyMsg (common.PartnerIDParam) returns (GetPartnerReplyMsgReply);
  47. }
  48. message GetPartnerReplyMsgReply{
  49. double fiveMinuteReplyRate = 1;// 五分钟回复率
  50. int64 chatNum = 2;// 聊天数
  51. int64 replyNum = 3;// 回复数
  52. int64 fiveMinuteReplyNum = 4; // 五分钟回复数
  53. }
  54. message PartnerReplyUserRequest{
  55. string partnerID = 1;
  56. int64 userSendTime = 2;// 用户发送时间
  57. int64 partnerReplyTime = 3;// 接待员回复时间
  58. }
  59. message AddTodayProfitRequest{
  60. string personID = 1; // 接待者的ID
  61. int64 profit = 2;// 收益
  62. }
  63. message GetLookAndLikeStatisticsMessageRequest{
  64. string personID = 1; // 查询目标的ID
  65. string personType = 2; // 类型
  66. bool isSelf = 3;
  67. }
  68. message ReceptionMsg{
  69. int64 todayReceptionNum = 1; //今日接待人数
  70. }
  71. message TodayProfitMsg{
  72. int64 todayProfit = 1; // 今日收益
  73. }
  74. message LookAndLikeListReply{
  75. repeated LookAndLikeListInfo list = 1;
  76. int64 nextId = 2;
  77. }
  78. message LookAndLikeListInfo{
  79. string id = 1; // 被查看的列表中的人的ID
  80. string type = 2; // 类型
  81. string nickname = 3;// 昵称
  82. string avatarUrl =4;// 头像链接
  83. int64 sex = 5;// 性别
  84. int64 age = 6;// 年龄
  85. string constellation = 7; // 星座
  86. int64 lastLookTime = 8; // 上次访问时间
  87. bool isHavePicture = 10; // 是否有图片
  88. bool isHaveVoice = 11; // 是否有语音
  89. bool isLock = 12;// 是否锁住信息
  90. string city = 13;// 市
  91. bool isRead = 14;// 是否已读
  92. repeated string tagList = 15; // 标签列表
  93. }
  94. message GetLookAndLikeListRequest{
  95. string personID = 1; // 查询目标的ID
  96. int64 nextId = 3;
  97. int64 offset = 4;
  98. }
  99. message LookAndLikeMessageReply{
  100. int64 likeNum = 1;// 我喜欢
  101. int64 likedNum = 2;// 喜欢我
  102. int64 likedUnreadNum = 3;// 喜欢我的未读数
  103. int64 lookNum = 4;// 看过我
  104. int64 lookUnreadNum = 5;// 看过我的未读数
  105. repeated string avatarUrlList = 6;// 头像列表
  106. }
  107. message LookMessageReply{
  108. int64 lookNum = 1;
  109. int64 lookUnreadNum = 2;
  110. int64 todayLookNum = 3;
  111. }
  112. message PersonMessage{
  113. string personID = 1; // 关注者、浏览者的ID
  114. string personType = 2; // 关注者、浏览者的类型
  115. string bePersonID = 3; // 被关注者、被浏览者的ID
  116. string bePersonType = 4; // 被关注者、被浏览者的类型
  117. }
  118. message UnlockLookRecordRequest{
  119. string personID = 1; // 关注者、浏览者的ID
  120. string bePersonID = 2; // 被关注者、被浏览者的ID
  121. }
  122. message ReceptionMessage{
  123. string partnerID = 1; // 接待者的ID
  124. string userID = 2; // 被接待者的ID
  125. }