| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418 | 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.CreateChatRoomParam) 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.RecommendPersonListReply){    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:"*"    };  };  // 通过类型获取表情包列表  rpc FindMemeByType (common.MemeRequest) returns (common.MemeList){    option (google.api.http) = {      post: "/api/partner/find/meme/type",      body:"*"    };  };  // 获取对方性别的聊天话题  rpc FindChatTopic (common.FindChatTopicRequest) returns (common.ChatTopicList){    option (google.api.http) = {      post: "/api/partner/find/topic",      body:"*"    };  };  // 随机表情包  rpc RandomMeme (common.RandomNum) returns (common.CommonTextList){    option (google.api.http) = {      post: "/api/partner/find/meme/random",      body:"*"    };  };  // 随机打招呼  rpc RandomSwiftMessage (common.RandomNumAndSex) returns (common.CommonTextList){    option (google.api.http) = {      post: "/api/partner/find/topic/random",      body:"*"    };  };  // 表情包分类名  rpc FindMemeTitle (google.protobuf.Empty) returns (common.MemeTitleList){    option (google.api.http) = {      post: "/api/partner/find/meme/title",      body:"*"    };  };  // 接待员获取聊天对象的资料卡片  rpc PartnerGetChatCard(common.PersonParam) returns (common.PartnerChatCardInfo){    option (google.api.http) = {      post: "/api/partner/chat/card",      body:"*"    };  };  // 聊天话题分类名  rpc FindChatTopicTitle (google.protobuf.Empty) returns (common.MemeTitleList){    option (google.api.http) = {      post: "/api/partner/find/chat/title",      body:"*"    };  };  // 接待员关注某人  rpc PartnerLike(common.PersonParam) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/partner/like",      body:"*"    };  };  // 接待员取关某人  rpc PartnerUnLike(common.PersonParam) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/partner/unlike",      body:"*"    };  };  // 举报某人  rpc Report (common.ReportChatRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/partner/report",      body:"*"    };  };//  // 拉黑某人//  rpc PartnerSetBlackChat (common.RoomIDRequest) returns (google.protobuf.Empty){//    option (google.api.http) = {//      post: "/api/partner/set/black",//      body:"*"//    };//  };  // 接待员领取开通奖励  rpc PartnerGetAward (PartnerGetAwardRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/partner/chat/award",      body:"*"    };  };  // 接待员更新工作状态  rpc PartnerUpdateWorkingStatus (PartnerUpdateWorkingStatusRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/partner/working/status/update",      body:"*"    };  };  // 查询推荐用户的数据  rpc FindRecommendPartnerDBList (common.FindRecommendRequest) returns (common.PersonDBReply){};  // 超过七天的头像列表  rpc FindOverSevenDayAvatar (google.protobuf.Empty) returns (common.FindOverSevenDayAvatarReply){    option (google.api.http) = {      post: "/api/partner/over/avatar/list",      body:"*"    };  };  // 查询未处理的数据  rpc FindNotReplyNum (google.protobuf.Empty) returns (chat.FindNotReplyNumReply){    option (google.api.http) = {      post: "/api/partner/chat/unreply/num",      body:"*"    };  };  // 接待员申请提现  rpc PartnerApplyWithdraw (PartnerApplyWithdrawRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/partner/withdraw",      body:"*"    };  };  // 接待员提现模板列表  rpc PartnerWithdrawTemplateList (google.protobuf.Empty) returns (PartnerWithdrawTemplateListReply){    option (google.api.http) = {      post: "/api/partner/withdraw/template/list",      body:"*"    };  };  // 接待员提现记录列表  rpc PartnerWithdrawRecordList (common.ListPageRequest) returns (PartnerWithdrawRecordListReply){    option (google.api.http) = {      post: "/api/partner/withdraw/record/list",      body:"*"    };  };  // 更新上次访问的小纸条  rpc UpdateLastScripID (common.UpdateLastScripIDRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/partner/scrip/last/update",      body:"*"    };  };  // 更新上次登录时间  rpc UpdatePartnerLastLoginTime (common.PersonIDParam) returns (google.protobuf.Empty){};}message PartnerWithdrawRecordListReply{  int64 nextId = 1;  repeated WithdrawInfo list = 2;}message WithdrawInfo{  int64 id = 1;// 记录ID  int64 money = 2;// 提现多少钱  int64 credit = 3;// 提现需要多少积分  string status = 4;// 状态  string result = 5;// 结果  int64 createTime = 6;// 创建时间  int64 successTime = 7;// 成功时间}message PartnerWithdrawTemplateListReply{  repeated PartnerWithdrawTemplateInfo list = 1;}message PartnerWithdrawTemplateInfo {  int64 id = 1;  int64 money = 2;// 提现多少钱  int64 credit = 3;// 提现需要多少积分  string title = 4;// 提现的标题}message PartnerUpdateWorkingStatusRequest{  string workingStatus = 1;// 工作状态}message PartnerGetAwardRequest{  string awardType = 1;// 奖励类型  string personID = 2; // 查询目标的ID  string personType = 3; // 类型}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  bool isBlack = 15;// 是否被封号  string workingStatus = 16;// 工作状态}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;// 性别}message PartnerApplyWithdrawRequest{  int64 templateId = 1;// 提现模板id}
 |