| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 | syntax = "proto3";package api.chat;//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/chat;chat";option java_multiple_files = true;option java_package = "api.chat";service Chat {  // 检查用户是否与接待员聊天  rpc CheckUserPartnerIsRelationship (common.UserAndPartnerIdentifyIdParam) returns (CheckUserPartnerIsRelationshipReply);  // 创建聊天房间  rpc CreateChatRoom (CreateChatRoomParam) returns (RoomReply);  // 查询在线人的列表  rpc FindOnlinePersonList (common.ListPageAndPersonRequest) returns (common.RecommendPersonListReply);  // 查询推荐人的列表  rpc FindRecommendPersonList (FindRecommendPersonListRequest) returns (common.RecommendPersonListReply);  // 接待员查询房间列表  rpc PartnerFindRoomList (PartnerFindRoomListRequest) returns (PartnerFindRoomListReply){};  // 用户查询房间列表  rpc UserFindRoomList (UserFindRoomListRequest) returns (UserFindRoomListReply){};  rpc Receive (ReceiveRequest) returns (ReceiveReply){};  // 查询聊天记录  rpc FindChatRecordList (FindChatRecordListRequest) returns (common.ChatRecordListReply){};  // 房间信息  rpc FindChatRoomMsg (FindChatRoomMsgRequest) returns (common.ChatRoomMsg){};  // 拉黑  rpc SetBlackChat (SetBlackChatParam) returns (google.protobuf.Empty){};  // 删除房间  rpc DeleteChat (SetBlackChatParam) returns (google.protobuf.Empty){};  // 拉黑  rpc Report (common.ReportRequest) returns (google.protobuf.Empty){};  // 接待员领取开通奖励  rpc PartnerGetAward (PartnerGetAwardRequest) returns (PartnerGetAwardReply){};  // 房间信息  rpc FindRoomCardMsg (FindRoomCardMsgRequest) returns (common.RoomChatMsg){};  // 查询未处理的数据  rpc FindNotReplyNum (common.IdentifyIdRequest) returns (FindNotReplyNumReply){};  // 创建纸条  rpc CreateScrip (common.CreateScripRequest) returns (common.ScripID){};  // 删除纸条  rpc DeleteScrip (common.DeleteScripRequest) returns (google.protobuf.Empty){};  // 查询自己的小纸条  rpc FindMyScrip (common.FindScripRequest) returns (common.ScripReply){};  // 查询别人的小纸条  rpc FindOtherScrip (common.FindOtherScripRequest) returns (common.ScripReply){};  // 查询随机纸条列表  rpc FindRecommendScrip (common.FindScripRequest) returns (common.ScripReply){};  // 用户查看纸条  rpc PersonLookScrip (common.PersonLookScripRequest) returns (google.protobuf.Empty){};  // 用户点击回看  rpc PersonClickLookBack (common.PersonParam) returns (common.ScripInfo){};  // 回复小纸条  rpc PersonReplyScrip (common.ReplyScripRequest) returns (common.ChatRecordInfo){};  // 获取假弹窗  rpc GetWindowInfo (common.MatchingRequest) returns (chat.WindowInfo){};  // 随机匹配  rpc GetRandomMatching (common.MatchingRequest) returns (GetRandomMatchingReply){};  // 随机匹配接待员  rpc GetMatchingPartnerInfo (common.SexReq) returns (common.GetMatchingPartnerInfoReply){};  // 接待员收藏某条记录  rpc PartnerCollect (PartnerCollectIDsRequest) returns (google.protobuf.Empty){};  // 接待员取消收藏某条记录  rpc PartnerDeleteCollect (PartnerCollectRequest) returns (google.protobuf.Empty){};  // 查询接待员在本房间的收藏列表  rpc FindChatCollectList (FindChatRecordListRequest) returns (common.ChatRecordListReply){};  // 用户解锁语音  rpc UserUnlockVoice (UserUnlockRequest) returns (google.protobuf.Empty){};  // 用户解锁图片  rpc UserUnlockPicture (UserUnlockRequest) returns (google.protobuf.Empty){};}message UserUnlockRequest{  int64 roomId = 1;// 房间ID  string personId = 2;  string personType = 3;  string identifyId = 4;}message PartnerCollectIDsRequest{  repeated int64 chatRecordIds = 1;// 记录ID  string personId = 2;  string personType = 3;  string identifyId = 4;  int64 roomId = 5;// 房间ID}message PartnerCollectRequest{  int64 chatRecordId = 1;// 记录ID  string personId = 2;  string personType = 3;  string identifyId = 4;}message GetRandomMatchingReply{  string personID = 1; // 查询目标的ID  string personType = 2; // 类型  int64 roomId = 3; // 房间ID  string nickname = 4;// 昵称  string avatarUrl = 5;// 头像  int64 sex = 6;// 性别  int64 age = 7;// 年龄}message FindNotReplyNumReply{  int64 personNum = 1;// 未接待人数  int64 messageNum = 2;// 消息数}message FindRecommendPersonListRequest{  string nextId = 1;  int64 offset = 2;  string personID = 3; // 查询目标的ID  string personType = 4; // 类型  int64 sex = 5;// 性别(不筛选就是0)}message FindRoomCardMsgRequest{  string userIdentifyId = 1; // 身份ID  string partnerIdentifyId = 2; // 身份ID}message PartnerGetAwardReply { int64 balance = 1;}message PartnerGetAwardRequest{  string userIdentifyId = 1; // 身份ID  string partnerIdentifyId = 2; // 身份ID  string awardType = 3;}message PartnerFindRoomListRequest {  int64 nextId = 1;  int64 offset = 2;  string IdentifyId = 3;  bool isFindNotReply = 4; // 是否查询没回复过的内容  bool isWithinSevenDay = 5; // 是否在七日内}message UserFindRoomListRequest {  int64 nextId = 1;  int64 offset = 2;  string IdentifyId = 3;  bool isWithinSevenDay = 4; // 是否在七日内}message UserFindRoomListReply{  repeated UserRoomInfo list = 1;  int64 nextId = 2;}message UserRoomInfo{  string personType = 1;// 用户类型  string personId = 2;// 用户ID  int64 unreadNum = 3;// 用户未读数  string lastContent = 4;// 上次发送内容  int64 lastTime = 5;// 上次发送时间  int64 likeability = 6;// 好感度  int64 roomId = 7; // 房间ID}message PartnerFindRoomListReply{  repeated PartnerRoomInfo list = 1;  int64 nextId = 2;}message PartnerRoomInfo{  int64 personSendNum = 1;// 用户发送数  string personId = 2;// 用户ID  int64 unreadNum = 3;// 接待者未读数  string lastContent = 4;// 上次发送内容  int64 lastTime = 5;// 上次发送时间  int64 benefit = 6;// 收益  string type = 7;// 类型(新客:new,付费:pay)  int64 sex = 8;// 性别  string avatarUrl = 9;// 头像  string nickname = 10;// 昵称  int64 age = 11;// 年龄  int64 likeability = 12;// 好感度  int64 roomId = 13;// 房间号ID  int64 personSendBaseNum = 14;// 用户发送基数}message CreateChatRoomParam {  string personId1 = 1;  string personIdentifyID1 = 2; // 身份ID  string personType1 = 3; // 类型  string personId2 = 4;  string personIdentifyID2 = 5; // 身份ID  string personType2 = 6; // 类型  string source = 7;// 来源}message SetBlackChatParam {  string personIdentifyId = 1; // 拉黑者的身份ID  int64 roomId = 2; // 房间ID}message ReceiveRequest{  string method = 1;  bytes data = 2;  string id = 3;  string websocketTag = 4;  string personType = 5;  string personId = 6;}message ReceiveReply{}message CheckUserPartnerIsRelationshipReply{  bool isBuildRelationship = 1;  int64 roomId = 2;}message RoomReply{  int64 roomId = 1;}message FindChatRoomMsgRequest{  int64 roomId = 1;  string personType = 2; // 类型  string personID = 3; // 查询目标的ID}message FindChatRecordListRequest{  int64 nextId = 1;  int64 offset = 2;  int64 roomId = 3;  string personType = 4; // 类型  string personID = 5; // 查询目标的ID}message WindowInfo{  string content = 1; // 文本内容  int64 roomId = 2; // 房间ID  string avatarUrl = 3;// 头像  string nickname = 4;// 昵称  int64 age = 5;// 年龄  int64 sex = 6;// 性别  repeated string reply = 7;// 快捷回复}message ReminderInfo{  int64 num = 1;// 发送条数  int64 limitNum = 2;// 上限条数  int64 sendTime = 3;// 发送时间}
 |