| 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 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);
- // 接待用户统计
- rpc ReceptionPerson (ReceptionMessage) returns (google.protobuf.Empty);
- // 接待员今日收益统计
- rpc AddTodayProfit (AddTodayProfitRequest) returns (google.protobuf.Empty);
- // 获取消息
- rpc GetReceptionMsg (common.PartnerIDParam) returns (ReceptionMsg);
- // 获取消息
- rpc GetTodayProfit (common.PartnerIDParam) returns (TodayProfitMsg);
- // 获取我是否喜欢(关注)该用户
- rpc GetIsLike (PersonMessage) returns (IsLike);
- }
- message IsLike{
- bool isLike = 1;// 是否喜欢(关注)该用户
- }
- message AddTodayProfitRequest{
- string personID = 1; // 接待者的ID
- int64 profit = 2;// 收益
- }
- message GetLookAndLikeStatisticsMessageRequest{
- string personID = 1; // 查询目标的ID
- string personType = 2; // 类型
- 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 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;// 是否锁住信息
- string city = 13;// 市
- }
- 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; // 被关注者、被浏览者的类型
- }
- message ReceptionMessage{
- string personID = 1; // 接待者的ID
- string bePersonID = 2; // 被接待者的ID
- int64 profit = 3;// 收益
- }
|