syntax = "proto3"; package api.partner; import "google/api/annotations.proto"; //import "google/protobuf/struct.proto"; import "google/protobuf/empty.proto"; import "api/common/common.proto"; import "api/statistics/statistics.proto"; import "api/chat/chat.proto"; option go_package = "git.ikuban.com/server/pw-protobuf/api/partner;partner"; option java_multiple_files = true; option java_package = "api.partner"; service Partner { // 获取接待员的个人信息 rpc GetPartnerInfo (google.protobuf.Empty) returns (PartnerInfo){ option (google.api.http) = { post: "/api/partner/info", body:"*" }; }; // 获取接待员的金额信息 rpc GetPartnerBalance (google.protobuf.Empty) returns (PartnerBalance){ option (google.api.http) = { post: "/api/partner/balance", body:"*" }; }; rpc GetPartnerDBBalance (common.PartnerIDParam) returns (PartnerDBBalance){} // 获取用户详情 rpc GetPartnerDBMsg (common.PersonIDParam) returns (common.PersonMsg); // 获取接待员的部分信息 rpc GetPartnerMessage (google.protobuf.Empty) returns (PartnerMessage){ option (google.api.http) = { post: "/api/partner/message", body:"*" }; }; // 获取接待员访问数详情 rpc GetPartnerLookNum (google.protobuf.Empty) returns (statistics.LookMessageReply){ option (google.api.http) = { post: "/api/partner/num/look", body:"*" }; }; // 接待员发送验证码 rpc SendPhoneCode (common.SendPhoneCodeRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/partner/code/send", body:"*" }; }; // 接待员验证验证码 rpc CheckPhoneCode (common.CheckPhoneCodeRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/partner/code/check", body:"*" }; }; // 获取接待员的确认通过页面信息 rpc GetPartnerCircleInfo (common.PartnerIDParam) returns (common.AddFriendMessageInfo); // 更新接待员的信息 rpc UpdatePartnerInformation (common.UpdateInformationRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/partner/update/information", body:"*" }; }; rpc GetRandomPartnerInfo (GetRandomPartnerRequest) returns (RandomPartnerInfo); // 接待员获取ta的主页信息 rpc PartnerGetHomeInfo (common.PersonParam) returns (common.HomeInfo){ option (google.api.http) = { post: "/api/partner/home", body:"*" }; }; // 接待员获取ta的主页访客、关注数 rpc PartnerGetPersonLikedAndLooked (common.PersonParam) returns (common.LookedAndLikedNum){ option (google.api.http) = { post: "/api/partner/num", body:"*" }; }; // 查看看过我的列表 rpc FindLookList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){ option (google.api.http) = { post: "/api/partner/list/look", body:"*" }; }; // 通过接待员IDs查看接待员信息列表 rpc FindPartnerDBList (common.PersonIDList) returns (common.PersonDBReply); // 微信SDK初始化 rpc WxConf (common.WxConfReq) returns (common.WxConfResponse){ option (google.api.http) = { post: "/api/wx/jssdk/config", body:"*" }; }; // 创建用户与接待员的关联 rpc CreateUserPartnerRoom (common.PersonIDParam) returns (chat.RoomReply){ option (google.api.http) = { post: "/api/partner/create/room", body:"*" }; }; // 获取标签列表 rpc FindTagListBySex (common.SexReq) returns (common.TagListReply){ option (google.api.http) = { post: "/api/partner/list/tag", body:"*" }; }; // 获取标签列表 rpc FindOnlineList (common.ListPage2Request) returns (common.OnlinePersonListReply){ option (google.api.http) = { post: "/api/partner/list/online", body:"*" }; }; // 未读列表(排队中) rpc FindUnReplyRoomList (common.ListPageRequest) returns (chat.PartnerFindRoomListReply){ option (google.api.http) = { post: "/api/partner/list/chat/unreply", body:"*" }; }; // 七天内列表(当前会话) rpc FindWithinSevenDayRoomList (common.ListPageRequest) returns (chat.PartnerFindRoomListReply){ option (google.api.http) = { post: "/api/partner/list/chat/within", body:"*" }; }; // 七天外列表(更早的聊天记录) rpc FindOverSevenDayRoomList (common.ListPageRequest) returns (chat.PartnerFindRoomListReply){ option (google.api.http) = { post: "/api/partner/list/chat/over", body:"*" }; }; } message PartnerInfo{ string id = 1; // id string nickname = 2;// 昵称 string avatarUrl =3;// 头像链接 int64 age = 4;// 年龄 int64 sex = 5;// 性别 string constellation = 6; // 星座 int64 level = 7;// 等级 repeated int64 tagList = 8; // 标签 string signature = 9; // 签名 string introduceVoice = 10; // 介绍语音 string province = 11;// 省 string city = 12;// 市 string area = 13;// 区 } message PartnerMessage{ string id = 1; // id int64 lookNum = 2; // 看过我的数量 int64 lookUnreadNum = 3; // 未读的看过我的数量 int64 todayReceptionNum = 4;// 今日接待人数 string reversionRate = 5;// 五分钟的回复率 } message PartnerBalance{ string id = 1; // id int64 balance = 2;// 可提现余额 int64 todayProfit = 3;// 今日收益 int64 level = 4;// 等级 } message PartnerDBBalance{ string id = 1; // id int64 level = 2;// 等级 int64 levelBenefit = 3;// 等级对应的收益 } message RandomPartnerInfo{ string id = 1; // id string nickname = 2;// 昵称 string avatarUrl =3;// 头像链接 int64 sex = 4;// 性别 } message GetRandomPartnerRequest{ int64 sex = 1;// 性别 }