syntax = "proto3"; package api.user; import "google/api/annotations.proto"; //import "google/protobuf/struct.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/struct.proto"; import "api/chat/chat.proto"; import "api/common/common.proto"; import "api/statistics/statistics.proto"; option go_package = "git.ikuban.com/server/pw-protobuf/api/user;user"; option java_multiple_files = true; option java_package = "api.user"; service User { // 1、获取用户详情 rpc GetUserInfo (google.protobuf.Empty) returns (UserInfo){ option (google.api.http) = { post: "/api/user/info", body:"*" }; }; rpc GetUserInfo1 (google.protobuf.Empty) returns (UserInfo){ option (google.api.http) = { post: "/api/user/info1", body:"*" }; }; // 2、用户发送验证码 rpc SendPhoneCode (common.SendPhoneCodeRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/code/send", body:"*" }; }; // 3、用户验证验证码 rpc CheckPhoneCode (common.CheckPhoneCodeRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/code/check", body:"*" }; }; // 4、更新用户信息 rpc UpdateUserInformation (common.UpdateInformationRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/update/information", body:"*" }; }; // 5、创建用户与某人的关联 rpc CreateUserPersonRoom (common.CreateChatRoomParam) returns (chat.RoomReply){ option (google.api.http) = { post: "/api/user/create/room", body:"*" }; }; // 6、获取用户的金额信息 rpc GetUserBalance (google.protobuf.Empty) returns (UserBalance){ option (google.api.http) = { post: "/api/user/balance", body:"*" }; }; // 7、用户获取ta的主页信息 rpc UserGetHomeInfo (common.PersonParam) returns (common.HomeInfo){ option (google.api.http) = { post: "/api/user/home", body:"*" }; }; // 8、用户获取ta的主页访客、关注数 rpc UserGetPersonLikedAndLooked (common.PersonParam) returns (common.LookedAndLikedNum){ option (google.api.http) = { post: "/api/user/num", body:"*" }; }; // 9、查看看过我的列表 rpc FindLookList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){ option (google.api.http) = { post: "/api/user/list/look", body:"*" }; }; // 11、获取标签列表 rpc FindTagListBySex (common.SexReq) returns (common.TagListReply){ option (google.api.http) = { post: "/api/user/list/tag", body:"*" }; }; // 12、获取在线列表 rpc FindOnlineList (common.ListPage2Request) returns (common.RecommendPersonListReply){ option (google.api.http) = { post: "/api/user/list/online", body:"*" }; }; // 13、七天内列表(当前会话) rpc FindWithinSevenDayRoomList (common.ListPageRequest) returns (UserFindChatListReply){ option (google.api.http) = { post: "/api/user/list/chat/within", body:"*" }; }; // 14、七天外列表(更早的聊天记录) rpc FindOverSevenDayRoomList (common.ListPageRequest) returns (UserFindChatListReply){ option (google.api.http) = { post: "/api/user/list/chat/over", body:"*" }; }; // 15、密友列表 rpc FindCloseFriendRoomList (common.ListPageRequest) returns (UserFindChatListReply){ option (google.api.http) = { post: "/api/user/list/chat/friend", body:"*" }; }; // 16、用户查询聊天记录 rpc FindChatRecordList (common.FindChatRecordListRequest) returns (common.ChatRecordListReply){ option (google.api.http) = { post: "/api/user/chat/record", body:"*" }; }; // 17、用户查询房间信息 rpc FindChatRoomMsg (common.FindChatRoomMsgRequest) returns (common.ChatRoomMsg){ option (google.api.http) = { post: "/api/user/chat/room/msg", body:"*" }; }; // 18、用户查询是否关注某人 rpc GetUserIsLike (common.PersonParam) returns (common.IsLike){ option (google.api.http) = { post: "/api/user/islike", body:"*" }; }; // 19、通过类型获取表情包列表 rpc FindMemeByType (common.MemeRequest) returns (common.MemeList){ option (google.api.http) = { post: "/api/user/find/meme/type", body:"*" }; }; // 20、获取对方性别的聊天话题 rpc FindChatTopic (common.FindChatTopicRequest) returns (common.ChatTopicList){ option (google.api.http) = { post: "/api/user/find/topic", body:"*" }; }; // 21、随机表情包 rpc RandomMeme (common.RandomNum) returns (common.CommonTextList){ option (google.api.http) = { post: "/api/user/find/meme/random", body:"*" }; }; // 22、随机打招呼 rpc RandomSwiftMessage (common.RandomNumAndSex) returns (common.CommonTextList){ option (google.api.http) = { post: "/api/user/find/topic/random", body:"*" }; }; // 23、表情包分类名 rpc FindMemeTitle (google.protobuf.Empty) returns (common.MemeTitleList){ option (google.api.http) = { post: "/api/user/find/meme/title", body:"*" }; }; // 24、用户获取聊天对象的资料卡片 rpc UserGetChatCard(common.PersonParam) returns (common.ChatCardInfo){ option (google.api.http) = { post: "/api/user/chat/card", body:"*" }; }; // 25、聊天话题分类名 rpc FindChatTopicTitle (google.protobuf.Empty) returns (common.MemeTitleList){ option (google.api.http) = { post: "/api/user/find/chat/title", body:"*" }; }; // 26、用户关注某人 rpc UserLike(common.PersonParam) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/like", body:"*" }; }; // 27、用户取关某人 rpc UserUnLike(common.PersonParam) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/unlike", body:"*" }; }; // 28、举报某人 rpc Report (common.ReportChatRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/report", body:"*" }; }; // 29、超过七天的头像列表 rpc FindOverSevenDayAvatar (google.protobuf.Empty) returns (common.FindOverSevenDayAvatarReply){ option (google.api.http) = { post: "/api/user/over/avatar/list", body:"*" }; }; // 30、更新上次访问的小纸条 rpc UpdateLastScripID (common.UpdateLastScripIDRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/scrip/last/update", body:"*" }; }; // 31、创建纸条 rpc CreateScrip (CreateScripRequest) returns (common.ScripID){ option (google.api.http) = { post: "/api/user/scrip/create", body:"*" }; }; // 32、删除纸条 rpc DeleteScrip (DeleteScripRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/scrip/delete", body:"*" }; }; // 33、查询自己的小纸条 rpc FindMyScrip (UserFindScripRequest) returns (common.ScripReply){ option (google.api.http) = { post: "/api/user/scrip/find/self", body:"*" }; }; // 34、查询别人的小纸条 rpc FindOtherScrip (common.FindScripRequest) returns (common.ScripReply){ option (google.api.http) = { post: "/api/user/scrip/find/other", body:"*" }; }; // 35、查询随机纸条列表 rpc FindRecommendScrip (UserFindScripRequest) returns (common.ScripReply){ option (google.api.http) = { post: "/api/user/scrip/find/recommend", body:"*" }; }; // 36、用户查看纸条 rpc PersonLookScrip (PersonLookScripRequest) returns (PersonLookScripReply){ option (google.api.http) = { post: "/api/user/scrip/look", body:"*" }; }; // 37、用户点击回看 rpc PersonClickLookBack (google.protobuf.Empty) returns (common.ScripInfo){ option (google.api.http) = { post: "/api/user/scrip/look/back", body:"*" }; }; // 38、用户回复小纸条 rpc PersonReplyScrip (ReplyScripRequest) returns (common.ChatRecordInfo){ option (google.api.http) = { post: "/api/user/scrip/reply", body:"*" }; }; // 39、用户删除房间 rpc UserDeleteChat (common.RoomIDRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/chat/delete", body:"*" }; }; // 40、获取用户的总未读数 rpc GetUserAllUnreadNum (google.protobuf.Empty) returns (chat.UnreadNumReply){ option (google.api.http) = { post: "/api/user/chat/unread/num", body:"*" }; }; // 41、用户查询与某人的房间 rpc GetUserRoomByPerson (common.PersonParam) returns (chat.UserRoomInfo){ option (google.api.http) = { post: "/api/user/room/info", body:"*" }; }; // 42、查看我喜欢的列表 rpc FindLikeList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){ option (google.api.http) = { post: "/api/user/list/like", body:"*" }; }; // 43、查看喜欢我的列表 rpc FindLikedList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){ option (google.api.http) = { post: "/api/user/list/liked", body:"*" }; }; // 44、用户拉黑某人 rpc UserSetBlackChat (common.RoomIDRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/set/black", body:"*" }; }; // 45、检查用户是否与接待员关联 rpc CheckUserPartnerIsRelationship (common.PartnerIDParam) returns (chat.CheckUserPartnerIsRelationshipReply){ option (google.api.http) = { post: "/api/user/check/relationship", body:"*" }; }; // 46、获取接待员的确认通过页面信息 rpc GetPartnerCircleInfo (KeyRequest) returns (common.AddFriendMessageInfo){ option (google.api.http) = { post: "/api/user/circle/info", body:"*" }; }; // 47、获取用户的访客数以及关注数 rpc GetLookAndLikeStatisticsMessage (google.protobuf.Empty) returns (statistics.LookAndLikeMessageReply){ option (google.api.http) = { post: "/api/user/num/like_look", body:"*" }; }; // 48、获取用户访问数详情 rpc GetUserLookNum (google.protobuf.Empty) returns (statistics.LookMessageReply){ option (google.api.http) = { post: "/api/user/look/num", body:"*" }; }; // 49、用户完善资料 rpc UserFinishInformation (google.protobuf.Empty) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/information/finish", body:"*" }; }; // 50、用户完善情况 rpc UserInformationStatus (google.protobuf.Empty) returns (InformationStatus){ option (google.api.http) = { post: "/api/user/information/status", body:"*" }; }; // 51、用户获取完善资料奖励 rpc UserGetInformationAward(google.protobuf.Empty) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/information/award", body:"*" }; }; // 52、解锁"看过我的"的记录 rpc UnlockLookRecord (common.PersonParam) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/look/unlock", body:"*" }; }; // 53、用户充值 rpc UserRecharge (UserRechargeRequest) returns (PayInfo){ option (google.api.http) = { post: "/api/user/recharge", body:"*" }; }; // 54、用户充值vip rpc UserRechargeVip (UserRechargeRequest) returns (PayInfo){ option (google.api.http) = { post: "/api/user/recharge/vip", body:"*" }; }; // 55、充值套餐列表 rpc FindRechargeList (google.protobuf.Empty) returns (RechargeList){ option (google.api.http) = { post: "/api/user/recharge/list", body:"*" }; }; // 56、充值Vip套餐列表 rpc FindVipRechargeList (google.protobuf.Empty) returns (VipRechargeList){ option (google.api.http) = { post: "/api/user/recharge/vip/list", body:"*" }; }; // 57、用户充值记录列表 rpc FindPayList (FindPayOrderListRequest) returns (PayOrderList){ option (google.api.http) = { post: "/api/user/pay/list", body:"*" }; }; // 58、查询推荐人的列表 rpc FindRecommendPersonList (google.protobuf.Empty) returns (common.RecommendPersonListReply){ option (google.api.http) = { post: "/api/user/list/recommend", body:"*" }; }; // 59、获取匹配的头像数组以及数量 rpc FindMatchingAvatarAndNum (google.protobuf.Empty) returns (FindMatchingAvatarAndNumReply){ option (google.api.http) = { post: "/api/user/matching/message", body:"*" }; }; // 60、获取假弹窗 rpc GetWindowInfo (google.protobuf.Empty) returns (chat.WindowInfo){ option (google.api.http) = { post: "/api/user/chat/window/get", body:"*" }; }; // 61、用户的每日免费数 rpc GetUserFreeNum (google.protobuf.Empty) returns (UserFreeNum){ option (google.api.http) = { post: "/api/user/free/num", body:"*" }; }; // 62、随机速配 rpc GetRandomMatching (GetRandomMatchingRequest) returns (chat.GetRandomMatchingReply){ option (google.api.http) = { post: "/api/user/random/matching", body:"*" }; }; // 63、解锁语音扣费 rpc UnlockVoice (common.RoomIDRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/unlock/voice", body:"*" }; }; // 64、解锁图片扣费 rpc UnlockPicture (common.RoomIDRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/unlock/picture", body:"*" }; }; // 65、更新用户注册状态 rpc UpdateUserIsRegister (google.protobuf.Empty) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/update/register", body:"*" }; }; // 66、创建用户与接待员的关联 rpc CreateUserPartnerRoom (common.CreateChatRoomParam) returns (chat.RoomReply){ option (google.api.http) = { post: "/api/user/create/room/partner", body:"*" }; }; // 67、用户发送消息 rpc SendMessage (SendMessageRequest) returns (common.SendMessageReply){ option (google.api.http) = { post: "/api/user/message/send", body:"*" }; }; // 68、获取用户vip信息 rpc GetVipInfo (google.protobuf.Empty) returns (VipInfo){ option (google.api.http) = { post: "/api/vip/info", body:"*" }; }; // 69、精选列表 rpc FindHandpickUser (google.protobuf.Empty) returns (common.HandpickPersonListReply){ option (google.api.http) = { post: "/api/handpick/list", body:"*" }; }; // 70、查询用户查看精选表的次数 rpc GetUserLookHandPickNum (google.protobuf.Empty) returns (GetUserLookHandPickNumReply){ option (google.api.http) = { post: "/api/user/look/handpick/num", body:"*" }; }; // 71、设置用户查看精选表的次数 rpc SetUserLookHandPickNum (common.PersonIDParam) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/look/handpick/num/set", body:"*" }; }; // 72、获取用户是能否领取回归奖励 rpc IsCanGetReturnReword (google.protobuf.Empty) returns (IsCanGetReturnRewordReply){ option (google.api.http) = { post: "/api/user/return/reword/status", body:"*" }; }; // 73、用户领取回归奖励 rpc UserGetReturnReword (google.protobuf.Empty) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/return/reword/get", body:"*" }; }; // 74、用户隐私状态 rpc UserPrivacyStatus (google.protobuf.Empty) returns (UserPrivacyStatusInfo){ option (google.api.http) = { post: "/api/user/privacy/status", body:"*" }; }; // 75、用户设置隐私状态 rpc UserSetPrivacyStatus (UserPrivacyStatusInfo) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/privacy/set", body:"*" }; }; // 用户点赞小纸条 rpc PersonStarScrip(common.ScripIdRequest) returns (common.ChatRecordInfo){ option (google.api.http) = { post: "/api/user/scrip/star", body:"*" }; }; // 用户更新手机号 rpc UpdateUserPhone (common.CheckPhoneCodeRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/update/phone", body:"*" }; }; // 清除用户的未读数 rpc CleanUserUnReadNum (google.protobuf.Empty) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/chat/clean/unread", body:"*" }; }; // 实名认证 rpc Certification (common.CheckIdentifyRequest) returns (common.CheckIdentifyReply){ option (google.api.http) = { post: "/api/user/certification", body:"*" }; }; rpc GetCreditConfig (google.protobuf.Empty) returns (GetCreditConfigReply){ option (google.api.http) = { post: "/api/user/credit/config", body:"*" }; }; // ---rpc--- // 获取用户详情 rpc GetUserDBMsg (common.PersonIDParam) returns (common.PersonMsg); // 通过用户IDs查看用户信息列表 rpc FindUserDBList (common.PersonIDList) returns (common.PersonDBReply); // 对内更新 rpc UpdateLastScripIDDB (common.UpdateLastScripIDDBRequest) returns (google.protobuf.Empty){}; // 更新上次登录时间 rpc UpdateUserLastLoginTime (common.PersonIDParam) returns (google.protobuf.Empty){}; // 通过userID查询用户 rpc GetUserDBMsgByAccountID (common.IDParam) returns (common.PersonMsg); // 获取推荐的人(new) rpc FindRecommendHighQualityUserDBList (FindRecommendHighQualityUserRequest) returns (FindRecommendHighQualityUserReply){}; // 获取用户详情websocket专用 rpc GetUserDBMsgFromWebsocket (common.PersonIDParam) returns (GetUserDBMsgFromWebsocketReply); // 发送消息扣费 rpc SendMsgReduceCredit (SendMsgReduceCreditRequest) returns (google.protobuf.Empty); // 回看纸条扣费 rpc LookBackScripReduceCredit (common.PersonParam) returns (google.protobuf.Empty); // 发纸条扣费 rpc CreateScripReduceCredit (common.PersonParam) returns (google.protobuf.Empty); // 回纸条扣费 rpc ReplyScripReduceCredit (common.PersonParam) returns (google.protobuf.Empty); // 匹配扣费 rpc MatchingCredit (common.PersonParam) returns (google.protobuf.Empty); // 创建机器人聊天会话扣费 rpc GetAIRobotCredit (common.PersonParam) returns (google.protobuf.Empty); // 机器人聊天扣费 rpc AIMessageSendCredit (common.PersonParam) returns (google.protobuf.Empty); // 更新今日被匹配数并返回用户信息 rpc UpdateUserMatchedNumAndReturnUserMsg (UpdateUserMatchedNumRequest) returns (UpdateUserMatchedNumAndReturnUserMsgReply){}; // 获取未匹配的离线用户 rpc GetRecommendUserDB(GetRecommendUserDBRequest) returns(common.PersonDB){} // 举报超过3次拉黑用户 rpc ReportUserBlack (ReportUserBlackRequest) returns (google.protobuf.Empty){}; // 用户加积分 rpc AddUserCredit (AddUserCreditRequest) returns (google.protobuf.Empty){}; // 用户完善情况 rpc UserInformationStatusDB (common.PersonIDParam) returns (InformationStatus){}; // 用户完成完善资料任务 兼容 rpc UserGetInformationAwardByActivity (UserGetInformationAwardByActivityRequest) returns (UserGetInformationAwardByActivityReply){}; // 获取userIDs对应的vip信息 rpc FindUserVipDBList (common.PersonIDList) returns (FindUserVipListDBReply){}; // 获取userIDs对应的vip信息 rpc FindUserCertificationDBList (common.PersonIDList) returns (FindUserCertificationDBReply){}; // 匹配不存在map中并满足条件的用户 rpc MatchUserDBWithoutMap (MatchUserDBWithoutMapRequest) returns (common.PersonDB){}; // 获取用户信息并判断是否初始化今日 rpc GetUserDBAndInit(common.GetUserDBAndInitReq) returns (common.PersonDBDetails){}; // 更新今日信息 rpc UpdateToday (UpdateTodayRequest) returns (google.protobuf.Empty){}; // 更新上次发送模板的时间信息 rpc UpdateLastSendTemplateTime (UpdateLastSendTemplateTimeRequest) returns (google.protobuf.Empty){}; // 定时移除过期vip rpc CronRemoveExpirationVip (google.protobuf.Empty) returns (google.protobuf.Empty){}; } message GetCreditConfigReply{ int64 unlockMessageCredit = 1; // 解锁信息需要的积分 int64 sendMessageCredit = 2; // 发送信息需要的积分 int64 lookBackScripCredit = 3; // 回看需要的积分 int64 createScripNum = 4; // 每日免费创建纸条数 int64 createScripCredit = 5; // 创建纸条需要的积分 int64 replyScripCredit = 6; // 回复纸条需要的积分 int64 replyScripNum = 7; // 每日免费回复数 int64 matchingNum = 8; // 每日免费匹配数 int64 matchingCredit = 9; // 匹配需要的积分 int64 unlockVoiceCredit = 10; // 解锁语音需要的积分 int64 unlockPictureCredit = 11; // 解锁图片需要的积分 int64 finishInformationAward = 12; // 完善资料奖励 int64 getAIRobotCredit = 13; // 创建ai会话 int64 aiMessageSendCredit = 14; // ai发送消息 } message PersonLookScripReply{ bool isNextLock = 1;// 下一个小纸条是否需要解锁 } message UpdateTodayRequest{ string userId = 1; int64 todaySendUnreadReminderNum = 2; int64 todaySendVisitorReminderNum = 3; } message UpdateLastSendTemplateTimeRequest{ string userId = 1; int64 lastSendTemplateTime = 2; } message UserPrivacyStatusInfo{ bool isCloseGreet = 1;// 是否关闭打招呼 bool isCloseMatching = 2;// 是否关闭匹配到我 } message IsCanGetReturnRewordReply{ bool isCanGetReword = 1; } message GetRandomMatchingRequest{ int64 sex = 4;// 性别 string province = 7;// 省 string city = 8;// 市 int64 maxAge = 9;// 最大年龄 int64 minAge = 10;// 最小年龄 } message MatchUserDBWithoutMapRequest{ map isMatchingMap = 1;// 已经匹配过的map string province = 2;// 省 string city = 3;// 市 int64 maxAge = 4;// 最大年龄 int64 minAge = 5;// 最小年龄 int64 sex = 6;// 性别 } message GetUserLookHandPickNumReply{ int64 num = 1; repeated string userIdList = 2; } message FindUserVipListDBReply{ map vipMap = 1; } message FindUserCertificationDBReply{ map certificationMap = 1; } message VipInfo{ bool isVip = 1; // 是否是vip int64 vipLevel = 2;// vip 等级˚ int64 growthValue = 3;// vip成长值 int64 renewalTime = 4;// 会员的续费时间 int64 expirationTime = 5;// 会员的到期时间˚˚ int64 createTime = 6;// 会员的开始时间 bool isYearVip = 7;// 是否是年费vip repeated string vipFunctions = 8;// vip功能 string userId = 9;// id } message SendMsgReduceCreditRequest{ string personID = 1; // 查询目标的ID bool isFree = 2;// 是否免费 string type = 3; // 消息类型 } message UserGetInformationAwardByActivityRequest{ string userId = 1; int64 credit = 2; string desc = 3; } message UserGetInformationAwardByActivityReply{ bool isError = 1; } message AddUserCreditRequest{ string id = 1; // id int64 credit = 2;// 积分 string detail = 3; } message ReportUserBlackRequest{ string personId = 1; string result = 2; } message SendMessageRequest{ int64 roomId = 1;// 房间ID common.Message message = 2;// 消息 string msgType = 3;// 消息类型 string websocketTag = 4; } message GetRecommendUserDBRequest{ int64 sex = 2; repeated string personIds = 3; // 匹配过的用户 } message FindRecommendHighQualityUserRequest{ int64 num = 1;// 数量 int64 sex = 3; string personId = 4;// ID } message FindRecommendHighQualityUserReply{ repeated string personIdList =1; } message UpdateUserMatchedNumAndReturnUserMsgReply{ int64 todayMatchedNum = 1;// 今日被匹配数 string nickname = 2;// 昵称 string avatarUrl =3;// 头像链接 int64 sex = 4;// 性别 int64 age = 5; // 年龄 string city = 6;//城市 } message GetUserDBMsgFromWebsocketReply{ string id = 1; // id int64 sex = 2;// 性别 int64 weight = 3;// 权重 string workingStatus = 4;// 工作状态 int64 todayMatchedNum = 5;// 今日被匹配数 int64 age = 6;// 年龄 string province = 7;// 省 string city = 8;// 市 } message UpdateUserMatchedNumRequest{ string userId = 2; } message SendMsgReduceCreditReply{ bool isSendReminder = 1;// 是否发送免费次数用完提醒 } message UserFreeNum{ int64 replyScripNum = 1;// 今日可免费回复纸条的次数 int64 createScripNum = 2;// 今日免费创建纸条的次数 int64 matchingNum = 3;// 今日免费匹配数 } message ReplyScripRequest { int64 scripId = 4;// 小纸条ID common.Message message = 5;// 回复内容 只需要提供 回复小纸条的内容 或 回复小纸条的素材链接 string msgType = 6; } message PersonLookScripRequest{ int64 scripId = 3;// 纸条id } message UserFindScripRequest { int64 nextId = 3; int64 offset = 4; } message DeleteScripRequest { int64 scripId = 1;// 纸条id } message CreateScripRequest { string text = 1;// 纸条内容 string pictureUrl = 2; // 纸条背景图 string province = 3; string city = 4; } message FindMatchingAvatarAndNumReply{ int64 num = 1;// 匹配人数 repeated string list = 2;// 头像列表 } message UserRechargeRequest{ int64 RechargeTemplateId = 1;// 充值套餐ID } message RechargeList{ repeated RechargeInfo list = 1; } message VipRechargeList{ repeated VipRechargeInfo list = 1; } message VipRechargeInfo{ int64 id = 1; string label = 2;// 标题 int64 price = 3;// 价格 int64 originPrice = 4;// 原价 int64 averagePerDayPrice = 5;// 日常价格 int64 additionalCoin = 6;// 赠送的积分 string description = 7;// 描述 } message RechargeInfo{ int64 id = 1; int64 price = 2; int64 credit = 3;// 积分 int64 giveCredit = 4;// 赠送的积分 string description = 5;// 描述 string title = 6;// 标题 } message InformationStatus{ bool isFinishInformation = 1;//是否完善资料 bool isGetAward = 2;// 是否领取奖励 int64 credit = 3;// 奖励的金额 } message UserBalance{ string id = 1; // id int64 credit = 2;// 积分 } message UserFindChatListReply{ repeated UserChatInfo list = 1; int64 nextId = 2; } message UserChatInfo{ string personId = 2;// 用户ID int64 unreadNum = 3;// 用户未读数 string lastContent = 4;// 上次发送内容 int64 lastTime = 5;// 上次发送时间 int64 likeability = 6;// 好感度 int64 sex = 8;// 性别 string avatarUrl = 9;// 头像 string nickname = 10;// 昵称 int64 age = 11;// 年龄 int64 roomId = 12;// 房间号ID bool isVip = 15;// 是否是Vip int64 vipLevel = 16;// vip等级 bool isYearVip = 17;// 是否是年费Vip repeated string vipFunctions = 18;// vip功能 bool isCertification = 26;// 是否实名认证 } message UserInfo{ string id = 1; // id string nickname = 2;// 昵称 string avatarUrl =3;// 头像链接 int64 age = 4;// 年龄 int64 sex = 5;// 性别 string constellation = 6; // 星座 int64 credit = 7;// 积分 repeated int64 tagList = 8; // 标签 string signature = 9; // 签名 string introduceVoice = 10; // 介绍语音 string province = 11;// 省 string city = 12;// 市 string area = 13;// 区 int64 userId = 14;// 用户ID bool isBlack = 15;// 是否被封号 bool isRegister = 16;// 是否注册 int64 UpdateNicknameNum = 17;// 今日更新昵称数 int64 UpdateAvatarUrlNum = 18;// 今日更新头像数 int64 UpdatePicturesNum = 19; // 今日更新相册数 int64 UpdateSignatureNum = 20; // 今日更新签名数 string phone = 21;// 手机号 bool isCertification = 28;// 是否实名认证 } message KeyRequest{ string key = 1; } message CreatePayRequest{ int64 money = 1; // 支付金额 单位 分 string type = 2; // 类型 string openId = 3; string description = 4; string attach = 5; } message PayInfo{ google.protobuf.Value payInfo = 1; int64 orderId = 2; } message PayOrderInfo{ string userID = 1; int64 orderID = 2; // 订单的唯一ID int64 money = 3; // 支付金额 ,单位分 string type = 4; // 类型 string TransactionID = 5; string openId = 6; string description = 7; string status = 9;// 状态 int64 payTime = 10;// 支付时间 int64 createTime = 11;// 创建时间 } message PayOrderList{ repeated PayOrderInfo list = 1; int64 nextId = 2; } message FindPayOrderListRequest{ int64 nextId = 1; int64 offset = 2; string status = 3; } message PayCallbackReply{ bytes result = 1; }