syntax = "proto3"; package api.statistics; //import "google/api/annotations.proto"; //import "google/protobuf/struct.proto"; import "google/protobuf/empty.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 GetUserServiceStatisticsMessage (GetStatisticsMessageRequest) returns (UserStatisticsMessageReply); // 获取陪聊端统计信息 rpc GetPartnerServiceStatisticsMessage (GetStatisticsMessageRequest) returns (PartnerStatisticsMessageReply); // 减少"看过我的"的未读数 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); } 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 UserStatisticsMessageReply{ int64 likeNum = 1; int64 likedNum = 2; int64 likedUnreadNum = 3; int64 lookNum = 4; int64 lookUnreadNum = 5; } message PartnerStatisticsMessageReply{ int64 lookNum = 1; int64 lookUnreadNum = 2; } message GetStatisticsMessageRequest{ string personID = 1; // 查询目标的ID string personType = 2; // 类型 } message PersonMessage{ string personID = 1; // 关注者、浏览者的ID string personType = 2; // 关注者、浏览者的类型 string bePersonID = 3; // 被关注者、被浏览者的ID string bePersonType = 4; // 被关注者、被浏览者的类型 }