|
@@ -6,418 +6,14 @@ import "google/api/annotations.proto";
|
|
|
//import "google/protobuf/struct.proto";
|
|
//import "google/protobuf/struct.proto";
|
|
|
import "google/protobuf/empty.proto";
|
|
import "google/protobuf/empty.proto";
|
|
|
import "api/common/common.proto";
|
|
import "api/common/common.proto";
|
|
|
-import "api/statistics/statistics.proto";
|
|
|
|
|
-import "api/chat/chat.proto";
|
|
|
|
|
|
|
+//import "api/statistics/statistics.proto";
|
|
|
|
|
+//import "api/chat/chat.proto";
|
|
|
|
|
|
|
|
option go_package = "git.ikuban.com/server/pw-protobuf/api/partner;partner";
|
|
option go_package = "git.ikuban.com/server/pw-protobuf/api/partner;partner";
|
|
|
option java_multiple_files = true;
|
|
option java_multiple_files = true;
|
|
|
option java_package = "api.partner";
|
|
option java_package = "api.partner";
|
|
|
|
|
|
|
|
service Partner {
|
|
service Partner {
|
|
|
- // 1、获取接待员的个人信息
|
|
|
|
|
- rpc GetPartnerInfo (google.protobuf.Empty) returns (PartnerInfo){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/info",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 2、接待员发送验证码
|
|
|
|
|
- rpc SendPhoneCode (common.SendPhoneCodeRequest) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/code/send",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 3、接待员验证验证码
|
|
|
|
|
- rpc CheckPhoneCode (common.CheckPhoneCodeRequest) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/code/check",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 4、更新接待员的信息
|
|
|
|
|
- rpc UpdatePartnerInformation (common.UpdateInformationRequest) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/update/information",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 5、创建用户与接待员的关联
|
|
|
|
|
- rpc CreateUserPartnerRoom (common.CreateChatRoomParam) returns (chat.RoomReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/create/room",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 6、获取接待员的金额信息
|
|
|
|
|
- rpc GetPartnerBalance (google.protobuf.Empty) returns (PartnerBalance){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/balance",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 7、接待员获取ta的主页信息
|
|
|
|
|
- rpc PartnerGetHomeInfo (common.PersonParam) returns (common.HomeInfo){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/home",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 8、接待员获取ta的主页访客、关注数
|
|
|
|
|
- rpc PartnerGetPersonLikedAndLooked (common.PersonParam) returns (common.LookedAndLikedNum){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/num",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 9、查看看过我的列表
|
|
|
|
|
- rpc FindLookList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/list/look",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 10、微信SDK初始化
|
|
|
|
|
- rpc WxConf (common.WxConfReq) returns (common.WxConfResponse){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/wx/jssdk/config",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 11、获取标签列表
|
|
|
|
|
- rpc FindTagListBySex (common.SexReq) returns (common.TagListReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/list/tag",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 12、获取在线列表
|
|
|
|
|
- rpc FindOnlineList (common.ListPage2Request) returns (common.RecommendPersonListReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/list/online",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 13、七天内列表(当前会话)
|
|
|
|
|
- rpc FindWithinSevenDayRoomList (common.ListPageRequest) returns (chat.PartnerFindRoomListReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/list/chat/within",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 14、七天外列表(更早的聊天记录)
|
|
|
|
|
- rpc FindOverSevenDayRoomList (common.ListPageRequest) returns (chat.PartnerFindRoomListReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/list/chat/over",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 15、接待者查询聊天记录
|
|
|
|
|
- rpc FindChatRecordList (common.FindChatRecordListRequest) returns (common.ChatRecordListReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/chat/record",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 16、接待者查询房间信息
|
|
|
|
|
- rpc FindChatRoomMsg (common.FindChatRoomMsgRequest) returns (common.ChatRoomMsg){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/chat/room/msg",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 17、接待员查询是否关注某人
|
|
|
|
|
- rpc GetPartnerIsLike (common.PersonParam) returns (common.IsLike){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/islike",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 18、通过类型获取表情包列表
|
|
|
|
|
- rpc FindMemeByType (common.MemeRequest) returns (common.MemeList){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/find/meme/type",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 19、获取对方性别的聊天话题
|
|
|
|
|
- rpc FindChatTopic (common.FindChatTopicRequest) returns (common.ChatTopicList){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/find/topic",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 20、随机表情包
|
|
|
|
|
- rpc RandomMeme (common.RandomNum) returns (common.CommonTextList){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/find/meme/random",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 21、随机打招呼
|
|
|
|
|
- rpc RandomSwiftMessage (common.RandomNumAndSex) returns (common.CommonTextList){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/find/topic/random",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 22、表情包分类名
|
|
|
|
|
- rpc FindMemeTitle (google.protobuf.Empty) returns (common.MemeTitleList){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/find/meme/title",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 24、聊天话题分类名
|
|
|
|
|
- rpc FindChatTopicTitle (google.protobuf.Empty) returns (common.MemeTitleList){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/find/chat/title",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 25、接待员关注某人
|
|
|
|
|
- rpc PartnerLike(common.PersonParam) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/like",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 26、接待员取关某人
|
|
|
|
|
- rpc PartnerUnLike(common.PersonParam) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/unlike",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 27、举报某人
|
|
|
|
|
- rpc Report (common.ReportChatRequest) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/report",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 28、超过七天的头像列表
|
|
|
|
|
- rpc FindOverSevenDayAvatar (google.protobuf.Empty) returns (common.FindOverSevenDayAvatarReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/over/avatar/list",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 29、更新上次访问的小纸条
|
|
|
|
|
- rpc UpdateLastScripID (common.UpdateLastScripIDRequest) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/scrip/last/update",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 30、创建纸条
|
|
|
|
|
- rpc CreateScrip (CreateScripRequest) returns (common.ScripID){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/scrip/create",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 31、删除纸条
|
|
|
|
|
- rpc DeleteScrip (common.ScripIdRequest) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/scrip/delete",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 32、查询自己的小纸条
|
|
|
|
|
- rpc FindMyScrip (common.ListPageRequest) returns (common.ScripReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/scrip/find/self",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 33、查询别人的小纸条
|
|
|
|
|
- rpc FindOtherScrip (common.FindScripRequest) returns (common.ScripReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/scrip/find/other",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 34、查询随机纸条列表
|
|
|
|
|
- rpc FindRecommendScrip (common.ListPageRequest) returns (common.ScripReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/scrip/find/recommend",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 35、用户查看纸条
|
|
|
|
|
- rpc PersonLookScrip (common.ScripIdRequest) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/scrip/look",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 36、用户点击回看
|
|
|
|
|
- rpc PersonClickLookBack (google.protobuf.Empty) returns (common.ScripInfo){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/scrip/look/back",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 37、用户回复小纸条
|
|
|
|
|
- rpc PersonReplyScrip (ReplyScripRequest) returns (common.ChatRecordInfo){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/scrip/reply",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 38、用户删除房间
|
|
|
|
|
- rpc PartnerDeleteChat (common.RoomIDRequest) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/chat/delete",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 39、获取用户的总未读数
|
|
|
|
|
- rpc GetPartnerAllUnreadNum (google.protobuf.Empty) returns (chat.UnreadNumReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/chat/unread/num",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 40、接待员查询与某人的房间
|
|
|
|
|
- rpc GetPartnerRoomByPerson (common.PersonParam) returns (chat.PartnerRoomInfo){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/room/info",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 41、查看我喜欢的列表
|
|
|
|
|
- rpc FindLikeList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/list/like",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 42、查看喜欢我的列表
|
|
|
|
|
- rpc FindLikedList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/list/liked",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- // // 拉黑某人
|
|
|
|
|
- // rpc PartnerSetBlackChat (common.RoomIDRequest) returns (google.protobuf.Empty){
|
|
|
|
|
- // option (google.api.http) = {
|
|
|
|
|
- // post: "/api/partner/set/black",
|
|
|
|
|
- // body:"*"
|
|
|
|
|
- // };
|
|
|
|
|
- // };
|
|
|
|
|
-
|
|
|
|
|
- // ---接待员专用---
|
|
|
|
|
- // 接待员收藏某条记录
|
|
|
|
|
- rpc PartnerCollect (PartnerCollectIDsRequest) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/collect",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 接待员取消收藏某条记录
|
|
|
|
|
- rpc PartnerDeleteCollect (PartnerCollectRequest) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/collect/delete",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 查询接待员在本房间的收藏列表
|
|
|
|
|
- rpc FindChatCollectList (common.FindChatRecordListRequest) returns (common.ChatRecordListReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/collect/list",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 获取接待员的部分信息
|
|
|
|
|
- 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 FindUnReplyRoomList (common.ListPageRequest) returns (chat.PartnerFindRoomListReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/list/chat/unreply",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 获取等级对应收益表
|
|
|
|
|
- rpc GetLevelBalanceTable (google.protobuf.Empty) returns (LevelTable){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/level/table",
|
|
|
|
|
- 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 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 PartnerGetRoomBalanceAndTodayBalance (common.RoomIDRequest) returns (PartnerGetRoomBalanceAndTodayBalanceReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/balance/room",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 接待员注册
|
|
|
|
|
- rpc PartnerRegister (common.UpdateInformationRequest) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/partner/register",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
// ---manager---
|
|
// ---manager---
|
|
|
// 接待员审核列表
|
|
// 接待员审核列表
|
|
|
rpc FindExamineList (common.ListPage2Request) returns (FindExamineListReply){
|
|
rpc FindExamineList (common.ListPage2Request) returns (FindExamineListReply){
|
|
@@ -468,140 +64,540 @@ service Partner {
|
|
|
body:"*"
|
|
body:"*"
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
- // 管理员查询接待员列表
|
|
|
|
|
- rpc ManagerFindPartnerList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/manager/partner/list",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 管理员更新接待员语音
|
|
|
|
|
- rpc ManagerUpdatePartnerVoice (common.ManagerUpdatePersonVoiceRequest) returns (google.protobuf.Empty){
|
|
|
|
|
|
|
+ // 管理员查询纸条列表
|
|
|
|
|
+ rpc ManagerFindScripList (common.ManagerFindScripListRequest) returns (common.ManagerScripReply){
|
|
|
option (google.api.http) = {
|
|
option (google.api.http) = {
|
|
|
- post: "/api/manager/partner/Voice/update",
|
|
|
|
|
|
|
+ post: "/api/manager/scrip/list",
|
|
|
body:"*"
|
|
body:"*"
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
- // 管理员更新接待员相册
|
|
|
|
|
- rpc ManagerUpdatePartnerPictures (common.ManagerUpdatePersonPicturesRequest) returns (google.protobuf.Empty){
|
|
|
|
|
|
|
+ // 管理员更新纸条文字
|
|
|
|
|
+ rpc ManagerUpdateScripText (common.ManagerUpdateScripTextRequest) returns (google.protobuf.Empty){
|
|
|
option (google.api.http) = {
|
|
option (google.api.http) = {
|
|
|
- post: "/api/manager/partner/pictures/update",
|
|
|
|
|
|
|
+ post: "/api/manager/update/scrip/text",
|
|
|
body:"*"
|
|
body:"*"
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
- // 管理员更新接待员签名
|
|
|
|
|
- rpc ManagerUpdatePartnerSignature (common.ManagerUpdatePersonSignatureRequest) returns (google.protobuf.Empty){
|
|
|
|
|
|
|
+ // 管理员更新纸条图片
|
|
|
|
|
+ rpc ManagerUpdateScripPicture (common.ManagerUpdateScripPictureRequest) returns (google.protobuf.Empty){
|
|
|
option (google.api.http) = {
|
|
option (google.api.http) = {
|
|
|
- post: "/api/manager/partner/signature/update",
|
|
|
|
|
|
|
+ post: "/api/manager/update/scrip/picture",
|
|
|
body:"*"
|
|
body:"*"
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
- // 管理员更新接待员头像
|
|
|
|
|
- rpc ManagerUpdatePartnerAvatar (common.ManagerUpdatePersonAvatarRequest) returns (google.protobuf.Empty){
|
|
|
|
|
|
|
+ // 管理员删除纸条
|
|
|
|
|
+ rpc ManagerDeleteScrip (common.IDParam) returns (google.protobuf.Empty){
|
|
|
option (google.api.http) = {
|
|
option (google.api.http) = {
|
|
|
- post: "/api/manager/partner/avatar/update",
|
|
|
|
|
|
|
+ post: "/api/manager/delete/scrip",
|
|
|
body:"*"
|
|
body:"*"
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
- // 管理员更新接待员昵称
|
|
|
|
|
- rpc ManagerUpdatePartnerName (common.ManagerUpdatePersonNameRequest) returns (google.protobuf.Empty){
|
|
|
|
|
|
|
+ // 管理员查询举报列表
|
|
|
|
|
+ rpc ManagerFindReportList (common.ManagerFindReportListRequest) returns (common.ManagerFindReportListReply){
|
|
|
option (google.api.http) = {
|
|
option (google.api.http) = {
|
|
|
- post: "/api/manager/partner/name/update",
|
|
|
|
|
|
|
+ post: "/api/manager/report/list",
|
|
|
body:"*"
|
|
body:"*"
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
- // 管理员更新接待员权重
|
|
|
|
|
- rpc ManagerUpdatePartnerWeight (common.ManagerUpdatePersonWeightRequest) returns (google.protobuf.Empty){
|
|
|
|
|
|
|
+ // 管理员查询某个举报者的举报详情列表
|
|
|
|
|
+ rpc ManagerFindReportDetailsList (common.ManagerFindReportDetailsListRequest) returns (common.ManagerFindReportDetailsListReply){
|
|
|
option (google.api.http) = {
|
|
option (google.api.http) = {
|
|
|
- post: "/api/manager/partner/weight/update",
|
|
|
|
|
|
|
+ post: "/api/manager/report/details/list",
|
|
|
body:"*"
|
|
body:"*"
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
- // 管理员更新接待员是否拉黑
|
|
|
|
|
- rpc ManagerUpdatePartnerIsBlack (common.ManagerUpdatePersonIsBlackRequest) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/manager/partner/black/update",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 管理员查询纸条列表
|
|
|
|
|
- rpc ManagerFindScripList (common.ManagerFindScripListRequest) returns (common.ManagerScripReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/manager/scrip/list",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 管理员更新纸条文字
|
|
|
|
|
- rpc ManagerUpdateScripText (common.ManagerUpdateScripTextRequest) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/manager/update/scrip/text",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 管理员更新纸条图片
|
|
|
|
|
- rpc ManagerUpdateScripPicture (common.ManagerUpdateScripPictureRequest) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/manager/update/scrip/picture",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 管理员删除纸条
|
|
|
|
|
- rpc ManagerDeleteScrip (common.IDParam) returns (google.protobuf.Empty){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/manager/delete/scrip",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 管理员查询举报列表
|
|
|
|
|
- rpc ManagerFindReportList (common.ManagerFindReportListRequest) returns (common.ManagerFindReportListReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/manager/report/list",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- // 管理员查询某个举报者的举报详情列表
|
|
|
|
|
- rpc ManagerFindReportDetailsList (common.ManagerFindReportDetailsListRequest) returns (common.ManagerFindReportDetailsListReply){
|
|
|
|
|
- option (google.api.http) = {
|
|
|
|
|
- post: "/api/manager/report/details/list",
|
|
|
|
|
- body:"*"
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
- // ---rpc---
|
|
|
|
|
- // 1、获取用户详情
|
|
|
|
|
- rpc GetPartnerDBMsg (common.PersonIDParam) returns (common.PersonMsg);
|
|
|
|
|
- // 2、通过接待员IDs查看接待员信息列表
|
|
|
|
|
- rpc FindPartnerDBList (common.PersonIDList) returns (common.PersonDBReply);
|
|
|
|
|
- // 3、对内更新
|
|
|
|
|
- rpc UpdateLastScripIDDB (common.UpdateLastScripIDDBRequest) returns (google.protobuf.Empty){};
|
|
|
|
|
- // 4、查询推荐用户的数据
|
|
|
|
|
- rpc FindRecommendPartnerDBList (common.FindRecommendRequest) returns (common.PersonDBReply){};
|
|
|
|
|
- // 5、更新上次登录时间
|
|
|
|
|
- rpc UpdatePartnerLastLoginTime (common.PersonIDParam) returns (google.protobuf.Empty){};
|
|
|
|
|
- // 6、通过userID查询用户
|
|
|
|
|
- rpc GetPartnerDBMsgByPartner (common.IDParam) returns (common.PersonMsg);
|
|
|
|
|
|
|
|
|
|
- // 获取接待员金额
|
|
|
|
|
- rpc GetPartnerDBBalance (common.PartnerIDParam) returns (PartnerDBBalance){}
|
|
|
|
|
- // 增加接待员金额
|
|
|
|
|
- rpc AddPartnerBalance(AddPartnerBalanceRequest) returns (google.protobuf.Empty){};
|
|
|
|
|
- // 获取接待员的确认通过页面信息
|
|
|
|
|
- rpc GetPartnerCircleInfo (common.PartnerIDParam) returns (common.AddFriendMessageInfo);
|
|
|
|
|
- // 获取一个推荐用户
|
|
|
|
|
- rpc GetRecommendPartnerDB (GetRecommendPartnerDBRequest) returns (common.PersonDB){};
|
|
|
|
|
- // 有未接待过的新用户发来消息(包括小纸条被未接待过的新用户回复)发送模板消息
|
|
|
|
|
- rpc SendNewUserSendMessage (common.PersonIDParam) returns (google.protobuf.Empty){};
|
|
|
|
|
- // 接待过的用户发来新消息 发送模板消息
|
|
|
|
|
- rpc SendOverOneMinuteUnreadMessageMessage (SendOverOneMinuteUnreadMessageMessageRequest) returns (google.protobuf.Empty){};
|
|
|
|
|
|
|
+ // // 管理员查询接待员列表
|
|
|
|
|
+ // rpc ManagerFindPartnerList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/manager/partner/list",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 管理员更新接待员语音
|
|
|
|
|
+ // rpc ManagerUpdatePartnerVoice (common.ManagerUpdatePersonVoiceRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/manager/partner/Voice/update",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 管理员更新接待员相册
|
|
|
|
|
+ // rpc ManagerUpdatePartnerPictures (common.ManagerUpdatePersonPicturesRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/manager/partner/pictures/update",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 管理员更新接待员签名
|
|
|
|
|
+ // rpc ManagerUpdatePartnerSignature (common.ManagerUpdatePersonSignatureRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/manager/partner/signature/update",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 管理员更新接待员头像
|
|
|
|
|
+ // rpc ManagerUpdatePartnerAvatar (common.ManagerUpdatePersonAvatarRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/manager/partner/avatar/update",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 管理员更新接待员昵称
|
|
|
|
|
+ // rpc ManagerUpdatePartnerName (common.ManagerUpdatePersonNameRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/manager/partner/name/update",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 管理员更新接待员权重
|
|
|
|
|
+ // rpc ManagerUpdatePartnerWeight (common.ManagerUpdatePersonWeightRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/manager/partner/weight/update",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 管理员更新接待员是否拉黑
|
|
|
|
|
+ // rpc ManagerUpdatePartnerIsBlack (common.ManagerUpdatePersonIsBlackRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/manager/partner/black/update",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 1、获取接待员的个人信息
|
|
|
|
|
+ // rpc GetPartnerInfo (google.protobuf.Empty) returns (PartnerInfo){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/info",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 2、接待员发送验证码
|
|
|
|
|
+ // rpc SendPhoneCode (common.SendPhoneCodeRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/code/send",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 3、接待员验证验证码
|
|
|
|
|
+ // rpc CheckPhoneCode (common.CheckPhoneCodeRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/code/check",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 4、更新接待员的信息
|
|
|
|
|
+ // rpc UpdatePartnerInformation (common.UpdateInformationRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/update/information",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 5、创建用户与接待员的关联
|
|
|
|
|
+ // rpc CreateUserPartnerRoom (common.CreateChatRoomParam) returns (chat.RoomReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/create/room",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 6、获取接待员的金额信息
|
|
|
|
|
+ // rpc GetPartnerBalance (google.protobuf.Empty) returns (PartnerBalance){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/balance",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 7、接待员获取ta的主页信息
|
|
|
|
|
+ // rpc PartnerGetHomeInfo (common.PersonParam) returns (common.HomeInfo){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/home",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 8、接待员获取ta的主页访客、关注数
|
|
|
|
|
+ // rpc PartnerGetPersonLikedAndLooked (common.PersonParam) returns (common.LookedAndLikedNum){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/num",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 9、查看看过我的列表
|
|
|
|
|
+ // rpc FindLookList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/list/look",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 10、微信SDK初始化
|
|
|
|
|
+ // rpc WxConf (common.WxConfReq) returns (common.WxConfResponse){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/wx/jssdk/config",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 11、获取标签列表
|
|
|
|
|
+ // rpc FindTagListBySex (common.SexReq) returns (common.TagListReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/list/tag",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 12、获取在线列表
|
|
|
|
|
+ // rpc FindOnlineList (common.ListPage2Request) returns (common.RecommendPersonListReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/list/online",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 13、七天内列表(当前会话)
|
|
|
|
|
+ // rpc FindWithinSevenDayRoomList (common.ListPageRequest) returns (chat.PartnerFindRoomListReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/list/chat/within",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 14、七天外列表(更早的聊天记录)
|
|
|
|
|
+ // rpc FindOverSevenDayRoomList (common.ListPageRequest) returns (chat.PartnerFindRoomListReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/list/chat/over",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 15、接待者查询聊天记录
|
|
|
|
|
+ // rpc FindChatRecordList (common.FindChatRecordListRequest) returns (common.ChatRecordListReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/chat/record",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 16、接待者查询房间信息
|
|
|
|
|
+ // rpc FindChatRoomMsg (common.FindChatRoomMsgRequest) returns (common.ChatRoomMsg){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/chat/room/msg",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 17、接待员查询是否关注某人
|
|
|
|
|
+ // rpc GetPartnerIsLike (common.PersonParam) returns (common.IsLike){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/islike",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 18、通过类型获取表情包列表
|
|
|
|
|
+ // rpc FindMemeByType (common.MemeRequest) returns (common.MemeList){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/find/meme/type",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 19、获取对方性别的聊天话题
|
|
|
|
|
+ // rpc FindChatTopic (common.FindChatTopicRequest) returns (common.ChatTopicList){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/find/topic",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 20、随机表情包
|
|
|
|
|
+ // rpc RandomMeme (common.RandomNum) returns (common.CommonTextList){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/find/meme/random",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 21、随机打招呼
|
|
|
|
|
+ // rpc RandomSwiftMessage (common.RandomNumAndSex) returns (common.CommonTextList){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/find/topic/random",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 22、表情包分类名
|
|
|
|
|
+ // rpc FindMemeTitle (google.protobuf.Empty) returns (common.MemeTitleList){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/find/meme/title",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 24、聊天话题分类名
|
|
|
|
|
+ // rpc FindChatTopicTitle (google.protobuf.Empty) returns (common.MemeTitleList){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/find/chat/title",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 25、接待员关注某人
|
|
|
|
|
+ // rpc PartnerLike(common.PersonParam) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/like",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 26、接待员取关某人
|
|
|
|
|
+ // rpc PartnerUnLike(common.PersonParam) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/unlike",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 27、举报某人
|
|
|
|
|
+ // rpc Report (common.ReportChatRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/report",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 28、超过七天的头像列表
|
|
|
|
|
+ // rpc FindOverSevenDayAvatar (google.protobuf.Empty) returns (common.FindOverSevenDayAvatarReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/over/avatar/list",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 29、更新上次访问的小纸条
|
|
|
|
|
+ // rpc UpdateLastScripID (common.UpdateLastScripIDRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/scrip/last/update",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 30、创建纸条
|
|
|
|
|
+ // rpc CreateScrip (CreateScripRequest) returns (common.ScripID){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/scrip/create",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 31、删除纸条
|
|
|
|
|
+ // rpc DeleteScrip (common.ScripIdRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/scrip/delete",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 32、查询自己的小纸条
|
|
|
|
|
+ // rpc FindMyScrip (common.ListPageRequest) returns (common.ScripReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/scrip/find/self",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 33、查询别人的小纸条
|
|
|
|
|
+ // rpc FindOtherScrip (common.FindScripRequest) returns (common.ScripReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/scrip/find/other",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 34、查询随机纸条列表
|
|
|
|
|
+ // rpc FindRecommendScrip (common.ListPageRequest) returns (common.ScripReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/scrip/find/recommend",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 35、用户查看纸条
|
|
|
|
|
+ // rpc PersonLookScrip (common.ScripIdRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/scrip/look",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 36、用户点击回看
|
|
|
|
|
+ // rpc PersonClickLookBack (google.protobuf.Empty) returns (common.ScripInfo){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/scrip/look/back",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 37、用户回复小纸条
|
|
|
|
|
+ // rpc PersonReplyScrip (ReplyScripRequest) returns (common.ChatRecordInfo){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/scrip/reply",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 38、用户删除房间
|
|
|
|
|
+ // rpc PartnerDeleteChat (common.RoomIDRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/chat/delete",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 39、获取用户的总未读数
|
|
|
|
|
+ // rpc GetPartnerAllUnreadNum (google.protobuf.Empty) returns (chat.UnreadNumReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/chat/unread/num",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 40、接待员查询与某人的房间
|
|
|
|
|
+ // rpc GetPartnerRoomByPerson (common.PersonParam) returns (chat.PartnerRoomInfo){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/room/info",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 41、查看我喜欢的列表
|
|
|
|
|
+ // rpc FindLikeList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/list/like",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 42、查看喜欢我的列表
|
|
|
|
|
+ // rpc FindLikedList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/list/liked",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ //
|
|
|
|
|
+ //
|
|
|
|
|
+ // // // 拉黑某人
|
|
|
|
|
+ // // rpc PartnerSetBlackChat (common.RoomIDRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // // option (google.api.http) = {
|
|
|
|
|
+ // // post: "/api/partner/set/black",
|
|
|
|
|
+ // // body:"*"
|
|
|
|
|
+ // // };
|
|
|
|
|
+ // // };
|
|
|
|
|
+ //
|
|
|
|
|
+ // // ---接待员专用---
|
|
|
|
|
+ // // 接待员收藏某条记录
|
|
|
|
|
+ // rpc PartnerCollect (PartnerCollectIDsRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/collect",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 接待员取消收藏某条记录
|
|
|
|
|
+ // rpc PartnerDeleteCollect (PartnerCollectRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/collect/delete",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 查询接待员在本房间的收藏列表
|
|
|
|
|
+ // rpc FindChatCollectList (common.FindChatRecordListRequest) returns (common.ChatRecordListReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/collect/list",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 获取接待员的部分信息
|
|
|
|
|
+ // 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 FindUnReplyRoomList (common.ListPageRequest) returns (chat.PartnerFindRoomListReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/list/chat/unreply",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 获取等级对应收益表
|
|
|
|
|
+ // rpc GetLevelBalanceTable (google.protobuf.Empty) returns (LevelTable){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/level/table",
|
|
|
|
|
+ // 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 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 PartnerGetRoomBalanceAndTodayBalance (common.RoomIDRequest) returns (PartnerGetRoomBalanceAndTodayBalanceReply){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/balance/room",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 接待员注册
|
|
|
|
|
+ // rpc PartnerRegister (common.UpdateInformationRequest) returns (google.protobuf.Empty){
|
|
|
|
|
+ // option (google.api.http) = {
|
|
|
|
|
+ // post: "/api/partner/register",
|
|
|
|
|
+ // body:"*"
|
|
|
|
|
+ // };
|
|
|
|
|
+ // };
|
|
|
|
|
+// // ---rpc---
|
|
|
|
|
+// // 1、获取用户详情
|
|
|
|
|
+// rpc GetPartnerDBMsg (common.PersonIDParam) returns (common.PersonMsg);
|
|
|
|
|
+// // 2、通过接待员IDs查看接待员信息列表
|
|
|
|
|
+// rpc FindPartnerDBList (common.PersonIDList) returns (common.PersonDBReply);
|
|
|
|
|
+// // 3、对内更新
|
|
|
|
|
+// rpc UpdateLastScripIDDB (common.UpdateLastScripIDDBRequest) returns (google.protobuf.Empty){};
|
|
|
|
|
+// // 4、查询推荐用户的数据
|
|
|
|
|
+// rpc FindRecommendPartnerDBList (common.FindRecommendRequest) returns (common.PersonDBReply){};
|
|
|
|
|
+// // 5、更新上次登录时间
|
|
|
|
|
+// rpc UpdatePartnerLastLoginTime (common.PersonIDParam) returns (google.protobuf.Empty){};
|
|
|
|
|
+// // 6、通过userID查询用户
|
|
|
|
|
+// rpc GetPartnerDBMsgByPartner (common.IDParam) returns (common.PersonMsg);
|
|
|
|
|
+//
|
|
|
|
|
+// // 获取接待员金额
|
|
|
|
|
+// rpc GetPartnerDBBalance (common.PartnerIDParam) returns (PartnerDBBalance){}
|
|
|
|
|
+// // 增加接待员金额
|
|
|
|
|
+// rpc AddPartnerBalance(AddPartnerBalanceRequest) returns (google.protobuf.Empty){};
|
|
|
|
|
+// // 获取接待员的确认通过页面信息
|
|
|
|
|
+// rpc GetPartnerCircleInfo (common.PartnerIDParam) returns (common.AddFriendMessageInfo);
|
|
|
|
|
+// // 获取一个推荐用户
|
|
|
|
|
+// rpc GetRecommendPartnerDB (GetRecommendPartnerDBRequest) returns (common.PersonDB){};
|
|
|
|
|
+// // 有未接待过的新用户发来消息(包括小纸条被未接待过的新用户回复)发送模板消息
|
|
|
|
|
+// rpc SendNewUserSendMessage (common.PersonIDParam) returns (google.protobuf.Empty){};
|
|
|
|
|
+// // 接待过的用户发来新消息 发送模板消息
|
|
|
|
|
+// rpc SendOverOneMinuteUnreadMessageMessage (SendOverOneMinuteUnreadMessageMessageRequest) returns (google.protobuf.Empty){};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
message OnlinePersonReply{
|
|
message OnlinePersonReply{
|
|
|
int64 userManNum = 1; // 男用户在线数
|
|
int64 userManNum = 1; // 男用户在线数
|
|
|
int64 userWomanNum = 2; // 女用户在线数
|
|
int64 userWomanNum = 2; // 女用户在线数
|
|
|
- int64 partnerManNum = 3; // 男接待员在线数
|
|
|
|
|
- int64 partnerWomanNum = 4; // 女接待员在线数
|
|
|
|
|
- int64 userOtherNum = 5; // 未填写性别的用户在线数
|
|
|
|
|
- int64 partnerOtherNum = 6; // 未填写性别的接待员在线数
|
|
|
|
|
|
|
+ int64 userOtherNum = 3; // 未填写性别的用户在线数
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
message SendOverOneMinuteUnreadMessageMessageRequest{
|
|
message SendOverOneMinuteUnreadMessageMessageRequest{
|