| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 | syntax = "proto3";package api.statistics;//import "google/api/annotations.proto";//import "google/protobuf/struct.proto";import "google/protobuf/empty.proto";import "api/common/common.proto";option go_package = "git.ikuban.com/server/pw-protobuf/api/statistics;statistics";option java_multiple_files = true;option java_package = "api.statistics";service Statistics {  // 观看用户主页  rpc LookPerson (PersonMessage) returns (google.protobuf.Empty);  // 关注用户  rpc LikePerson (PersonMessage) returns (google.protobuf.Empty);  // 取关用户  rpc UnLikePerson (PersonMessage) returns (google.protobuf.Empty);  // 获取喜欢以及访问统计信息  rpc GetLookAndLikeStatisticsMessage (GetLookAndLikeStatisticsMessageRequest) returns (LookAndLikeMessageReply);  // 获取访问统计信息  rpc GetLookStatisticsMessage (common.PersonParam) returns (LookMessageReply);  // 减少"喜欢我的"的未读数  rpc ReduceLikeUnreadNum (PersonMessage) returns (google.protobuf.Empty);  // 解锁"看过我的"的记录  rpc UnlockLookRecord (UnlockLookRecordRequest) returns (google.protobuf.Empty);  // 查看看过我的列表  rpc FindLookList (GetLookAndLikeListRequest) returns (LookAndLikeListReply);  // 查看我喜欢的列表  rpc FindLikeList (GetLookAndLikeListRequest) returns (LookAndLikeListReply);  // 查看喜欢我的列表  rpc FindLikedList (GetLookAndLikeListRequest) returns (LookAndLikeListReply);  // 获取我是否喜欢(关注)该用户  rpc GetIsLike (PersonMessage) returns (common.IsLike);}message GetPartnerReplyMsgReply{  double fiveMinuteReplyRate = 1;// 五分钟回复率  int64 chatNum = 2;// 聊天数  int64 replyNum = 3;// 回复数  int64 fiveMinuteReplyNum = 4; // 五分钟回复数}message PartnerReplyUserRequest{  string partnerID = 1;  int64 userSendTime = 2;// 用户发送时间  int64 partnerReplyTime = 3;// 接待员回复时间}message AddTodayProfitRequest{  string personID = 1; // 接待者的ID  int64 profit = 2;// 收益}message GetLookAndLikeStatisticsMessageRequest{  string personID = 1; // 查询目标的ID  bool isSelf = 3;}message ReceptionMsg{  int64 todayReceptionNum = 1; //今日接待人数}message TodayProfitMsg{  int64 todayProfit = 1; // 今日收益}message LookAndLikeListReply{  repeated LookAndLikeListInfo list = 1;  int64 nextId = 2;}message LookAndLikeListInfo{  string id = 1; // 被查看的列表中的人的ID  string nickname = 3;// 昵称  string avatarUrl =4;// 头像链接  int64 sex = 5;// 性别  int64 age = 6;// 年龄  string constellation = 7; // 星座  int64 lastLookTime = 8; // 上次访问时间  bool isHavePicture = 10; // 是否有图片  bool isHaveVoice = 11; // 是否有语音  bool isLock = 12;// 是否锁住信息  string city = 13;// 市  bool isRead = 14;// 是否已读  repeated string tagList = 15; // 标签列表}message GetLookAndLikeListRequest{  string personID = 1; // 查询目标的ID  int64 nextId = 3;  int64 offset = 4;}message LookAndLikeMessageReply{  int64 likeNum = 1;// 我喜欢  int64 likedNum = 2;// 喜欢我  int64 likedUnreadNum = 3;// 喜欢我的未读数  int64 lookNum = 4;// 看过我  int64 lookUnreadNum = 5;// 看过我的未读数  repeated string avatarUrlList = 6;// 头像列表}message LookMessageReply{  int64 lookNum = 1;  int64 lookUnreadNum = 2;  int64 todayLookNum = 3;}message PersonMessage{  string personID = 1; // 关注者、浏览者的ID  string bePersonID = 3; // 被关注者、被浏览者的ID}message UnlockLookRecordRequest{  string personID = 1; // 关注者、浏览者的ID  string bePersonID = 2; // 被关注者、被浏览者的ID}message ReceptionMessage{  string partnerID = 1; // 接待者的ID  string userID = 2; // 被接待者的ID}
 |