| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- 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:"*"
- };
- };
- // 接待者查询聊天记录
- rpc FindChatRecordList (common.FindChatRecordListRequest) returns (common.ChatRecordListReply){
- option (google.api.http) = {
- post: "/api/partner/chat/record",
- body:"*"
- };
- };
- // 接待者查询房间信息
- rpc FindChatRoomMsg (common.FindChatRoomMsgRequest) returns (common.ChatRoomMsg){
- option (google.api.http) = {
- post: "/api/partner/chat/room/msg",
- body:"*"
- };
- };
- rpc AddPartnerBalance(AddPartnerBalanceRequest)returns (google.protobuf.Empty){};
- // 获取等级对应收益表
- rpc GetLevelBalanceTable (google.protobuf.Empty) returns (LevelTable){
- option (google.api.http) = {
- post: "/api/partner/level/table",
- body:"*"
- };
- };
- // 接待员查询是否关注某人
- rpc GetPartnerIsLike (common.PersonParam) returns (common.IsLike){
- option (google.api.http) = {
- post: "/api/partner/islike",
- body:"*"
- };
- };
- }
- message LevelTable{
- repeated LevelInfo list = 1;
- }
- message LevelInfo{
- int64 level = 1;// 等级
- int64 chatBenefit = 2;// 聊天收益
- int64 callBenefit = 3;// 语音通话收益
- string condition = 4;// 达成条件
- }
- message AddPartnerBalanceRequest{
- string partnerId = 1;
- int64 balance = 2;
- }
- 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;// 区
- int64 partnerId = 14;// 接待员ID
- }
- 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 chatBenefit = 3;// 聊天收益
- int64 callBenefit = 4;// 语音通话收益
- }
- message RandomPartnerInfo{
- string id = 1; // id
- string nickname = 2;// 昵称
- string avatarUrl =3;// 头像链接
- int64 sex = 4;// 性别
- }
- message GetRandomPartnerRequest{
- int64 sex = 1;// 性别
- }
|