| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 | 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 ReduceLookUnreadNum (PersonMessage) returns (google.protobuf.Empty);  // 减少"喜欢我的"的未读数  rpc ReduceLikeUnreadNum (PersonMessage) returns (google.protobuf.Empty);  // 解锁"看过我的"的记录  rpc UnlockLookRecord (PersonMessage) returns (google.protobuf.Empty);  // 查看看过我的列表  rpc FindLookList (GetLookAndLikeListRequest) returns (LookAndLikeListReply);  // 查看我喜欢的列表  rpc FindLikeList (GetLookAndLikeListRequest) returns (LookAndLikeListReply);  // 查看喜欢我的列表  rpc FindLikedList (GetLookAndLikeListRequest) returns (LookAndLikeListReply);}message GetLookAndLikeStatisticsMessageRequest{  string personID = 1; // 查询目标的ID  string personType = 2; // 类型  bool isSelf = 3;}message LookAndLikeListReply{  repeated LookAndLikeListInfo list = 1;  int64 nextId = 2;}message LookAndLikeListInfo{  string id = 1; // 被查看的列表中的人的ID  string type = 2; // 类型  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;// 是否锁住信息}message GetLookAndLikeListRequest{  string personID = 1; // 查询目标的ID  string personType = 2; // 类型  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 personType = 2; // 关注者、浏览者的类型  string bePersonID = 3; // 被关注者、被浏览者的ID  string bePersonType = 4; // 被关注者、被浏览者的类型}
 |