syntax = "proto3"; package api.common; //import "google/api/annotations.proto"; //import "google/protobuf/struct.proto"; //import "google/protobuf/empty.proto"; option go_package = "git.ikuban.com/server/pw-protobuf/api/common;common"; option java_multiple_files = true; option java_package = "api.common"; message UserAndPartnerIdentifyIdParam { string partnerIdentifyId = 1; string userIdentifyId = 2; } message UserAndPartnerParam { string partnerId = 1; string partnerIdentifyID = 2; // 身份ID string userId = 3; string userIdentifyID = 4; // 身份ID } message User1AndUser2IdParam { string user1 = 1; string user2 = 2; } message PartnerIDParam { string partnerID = 1; } message PersonIDParam { string personID = 1; } message IDParam{ int64 id = 1; } message PersonParam{ string personID = 1; // 查询目标的ID } message CreateChatRoomParam{ string personID = 1; // 查询目标的ID string source = 3;// 来源 } message ChatCardInfo{ string id = 1; // id string nickname = 2;// 昵称 string avatarUrl =3;// 头像链接 int64 sex = 4;// 性别 int64 age = 6; // 年龄 string constellation = 7; // 星座 repeated string list = 9; // 相册列表 string introduceVoice = 10; // 介绍语音 string province = 11;// 省 string city = 12;// 市 string area = 13;// 区 bool isFinishInformation = 14;//是否完善资料 string signature = 15;// 签名 bool isVip = 22;// 是否是Vip int64 vipLevel = 23;// vip等级 bool isYearVip = 24;// 是否是年费Vip repeated string vipFunctions = 25;// vip功能 } message UserIDParam { string userId = 1; } message WxConfReq { string url = 1; } message WxConfResponse{ string appId = 1; // 必填,公众号的唯一标识 int64 timestamp = 2; // 必填,生成签名的时间戳 string nonceStr = 3;// 必填,生成签名的随机串 string signature = 4;// 必填,签名 string url = 5;// 传入的url } // 主页信息 message HomeInfo{ string id = 1; // id string nickname = 2;// 昵称 string avatarUrl =3;// 头像链接 int64 sex = 4;// 性别 repeated string pictures = 5; // 图片 int64 age = 6; // 年龄 string constellation = 7; // 星座 repeated TagList tagList = 8; // 标签 string signature = 9; // 签名 string introduceVoice = 10; // 介绍语音 string province = 11;// 省 string city = 12;// 市 string area = 13;// 区 bool isBlack = 14;// 是否被封号 int64 UpdateNicknameNum = 17;// 今日更新昵称数 int64 UpdateAvatarUrlNum = 18;// 今日更新头像数 int64 UpdatePicturesNum = 19; // 今日更新相册数 int64 UpdateSignatureNum = 20; // 今日更新签名数 bool isSuperLove = 21;// 是否是超级喜欢 bool isVip = 22;// 是否是Vip int64 vipLevel = 23;// vip等级 bool isYearVip = 24;// 是否是年费Vip repeated string vipFunctions = 25;// vip功能 } message PersonMsg { string id = 1; // id string nickname = 2;// 昵称 string avatarUrl =3;// 头像链接 int64 sex = 4;// 性别 repeated string pictures = 5; // 图片 int64 age = 6; // 年龄 string constellation = 7; // 星座 repeated int64 tagList = 8; // 标签 string signature = 9; // 签名 string introduceVoice = 10; // 介绍语音 string province = 11;// 省 string city = 12;// 市 string area = 13;// 区 bool isFinishInformation = 14; // 是否完成注册 bool isBlack = 15;// 是否被封禁 int64 weight = 16;// 权重 string workingStatus = 17;// 工作状态 int64 lastScripID = 18;// 上次观看小纸条ID } message LookedAndLikedNum{ string id = 1; // id int64 lookedNum = 2; // 看过ta的数量 int64 likedNum = 3;// 喜欢ta的数量 } // 添加好友页面信息 message AddFriendMessageInfo{ string id = 1; // id string nickname = 2;// 昵称 string avatarUrl =3;// 头像链接 int64 sex = 4;// 性别 repeated string pictures = 5; // 图片 string fromOpenId = 6;// 来源公众号对应的openID bool isRegister = 7;// 是否注册 bool isChat = 8;// 是否聊天 bool isFromUs = 9;// 是否是来源我们 string fromAppId = 10;// 来源公众号对应的appID string fromName = 11;// 来源公众号对应的公众号名称 string constellation = 12; // 星座 string signature = 13;// 介绍(签名) string province = 14;// 省 string city = 15;// 市 string area = 16;// 区 int64 roomId = 17;// 聊过天的话返回房间ID bool isVip = 18; // 是否是vip int64 vipLevel = 19;// vip 等级 bool isYearVip = 20;// 是否是年费vip repeated string vipFunctions = 22;// vip功能 } message PersonIDList{ repeated string personIds = 1; } message PersonDBReply{ repeated PersonDB list = 1; } message PersonDB{ string id = 1; // id string nickname = 2;// 昵称 string avatarUrl =3;// 头像链接 int64 sex = 4;// 性别 repeated string pictures = 5; // 图片 int64 age = 6; // 年龄 string constellation = 7; // 星座 string introduceVoice = 8; // 介绍语音 string province = 9;// 省 string city = 10;// 市 string area = 11;// 区 string signature = 12;//介绍 bool isFinishInformation = 13;//是否完善消息 repeated int64 tagList = 14;// 标签列表 int64 personId = 16;// 用户id(number) bool isBlack = 17;// 是否是黑名单用户 } message PersonDBDetails{ string id = 1; // id string nickname = 2;// 昵称 string avatarUrl =3;// 头像链接 int64 sex = 4;// 性别 repeated string pictures = 5; // 图片 int64 age = 6; // 年龄 string constellation = 7; // 星座 string introduceVoice = 8; // 介绍语音 string province = 9;// 省 string city = 10;// 市 string area = 11;// 区 string signature = 12;//介绍 bool isFinishInformation = 13;//是否完善消息 repeated int64 tagList = 14;// 标签列表 int64 personId = 16;// 用户id(number) bool isBlack = 17;// 是否是黑名单用户 int64 todaySendUnreadReminderNum = 18; int64 lastSendTemplateTime = 19; int64 todaySendVisitorReminderNum = 20; } message GetUserDBAndInitReq{ string personId = 1; bool isInit = 2; } message ScripIdRequest { int64 scripId = 1;// 纸条id } message ListPageRequest{ int64 nextId = 1; int64 offset = 2; } message ListPageAndSexRequest{ int64 nextId = 1; int64 offset = 2; int64 sex = 3;// 对方的性别 } message FindChatTopicRequest{ string type = 1;// 话题类型 int64 sex = 2;// 对方的性别 } message ListPage2Request{ string nextId = 1; int64 offset = 2; } message ListPageAndPersonRequest{ string nextId = 1; int64 offset = 2; string personID = 3; // 查询目标的ID } message SendPhoneCodeRequest { string phone = 1; } message CheckPhoneCodeRequest { string phone = 1; string code = 2; } message ManagerLoginRequest{ string account = 1;// 账号 string password = 2;// 密码 } message LoginToken{ string token = 1; } message UploadMaterialResponse{ string link = 1; } message Ids { repeated int64 ids = 1;// 标签ID } message TagListReply{ repeated TagList list = 1;// 标签列表 } message TagList{ int64 id = 1; // 标签ID string name = 2;// 分组名 } message SexReq{ int64 sex = 1; } message GetMatchingPartnerInfoReply{ string id = 1; // id string nickname = 2;// 昵称 string avatarUrl =3;// 头像链接 int64 sex = 4;// 性别 string city = 5;// 城市 } message RandomIntroduceReply{ string introduce = 1; } message UpdateInformationRequest { string nickname = 1; // 昵称 string avatarUrl = 2;// 头像 int64 sex = 3; // 性别 int64 birthday = 4;// 出生日期(毫秒级时间戳) repeated int64 tagList = 5;// 标签id列表 string introduceVoice = 6;// 介绍语音的链接 string signature = 7;// 介绍(签名) repeated string pictures = 8;// 相册(主页图片) string province = 9;// 省 string city = 10;// 市 string area = 11;// 区 } message ChatRecordListReply{ repeated ChatRecordInfo list = 1; int64 nextId = 2; } message ChatRoomMsg{ int64 roomId = 1; // 房间ID ChatPersonMsg self = 2; // 自己的信息 ChatPersonMsg other = 3; // 对方的信息 int64 likeability = 5; // 对对方的好感度 bool isFirstChat = 6;// 是否是第一次聊天 } message ChatPersonMsg{ string id = 1; // id string nickname = 3; // 昵称 string avatar = 4; // 头像 int64 sex = 5;// 性别 bool isLove = 6;// 是否爆灯 bool isVip = 15;// 是否是Vip int64 vipLevel = 16;// vip等级 bool isYearVip = 17;// 是否是年费Vip repeated string vipFunctions = 22;// vip功能 } message ChatRecordInfo{ int64 messageId = 1; // 消息的ID string msgType = 2; // 消息类型 Message message = 3; // 消息的结构 int64 roomId = 4; // 房间ID bool isSelf = 5; // 是否是自己 int64 sendTime = 6; // 发送时间 string status = 7; // 消息状态 string statusMsg = 8;// 状态说明 bool isRead = 9;// 对方是否已读 } message ChatIsReadInfo{ int64 messageId = 1; // 消息的ID int64 roomId = 4; // 房间ID } message GoToRoom{ int64 roomId = 1; // 房间ID } message Message{ string content = 1; // 文本内容 string materialUrl = 2; // 素材链接 string scripContent = 3; // 小纸条的内容 string scripMaterialUrl = 4;// 小纸条的素材链接 string replyScripContent = 5; // 回复小纸条的内容 string replyScripMaterialUrl = 6;// 回复小纸条的素材链接 } message FindChatRoomMsgRequest{ int64 roomId = 1; } message RoomIDRequest{ int64 roomId = 1; } message FindChatRecordListRequest{ int64 nextId = 1; int64 offset = 2; int64 roomId = 3; } message IsLike{ bool isLike = 1;// 是否喜欢(关注) } message RandomNum { int64 num = 1; // 随机的数量 } message RandomNumAndSex { int64 num = 1; // 随机的数量 int64 sex = 2; // 对方的性别 } message MemeRequest{ int64 nextId = 1; int64 offset = 2; string type = 3; } message CommonTextList { repeated string list = 1;// 需要的数据集合(随机表情包、随机打招呼) } message MemeTitleList { repeated MemeTitle list = 1;// 需要的数据集合(随机表情包、随机打招呼) } message MemeTitle{ string name = 1;// 名称 string type = 2;// 类型 } message MemeList { repeated string list = 1;// 表情包列表 int64 nextId = 2; } message ChatTopicList { repeated string list = 1;// 话题列表 } message ReportChatRequest{ string reportMsg = 1;// 举报的详情 string type = 2;// 举报类型 int64 messageId = 3;// 举报对象的ID(纸条、房间) string reportedPersonId = 4; // 被举报的人的ID string contactInformation = 6; // 联系方式 repeated string picture = 7; // 图片 repeated string category = 8; // 类别 } message ReportRequest{ string type = 1;// 举报类型 string personId = 2; // 发起举报的人的ID int64 messageId = 3;// 举报对象的ID(纸条、房间) string reportedPersonId = 5; // 被举报的人的ID string contactInformation = 7; // 联系方式 repeated string picture = 8; // 图片 repeated string category = 9; // 类别 string reportMsg = 10;// 举报的详情 } message RoomChatMsg{ string source = 6;// 来源 string type = 7;// 类型(新客:new,付费:pay) int64 benefit = 8;// 收益 bool isUnlockVoice = 9;// 是否解锁语音 bool isUnlockPicture = 10;// 是否解锁图片 int64 unlockVoicePrice = 11;// 解锁语音奖励 int64 unlockPicturePrice = 12;// 解锁图片奖励 bool isGetVoicePrice = 13; // 是否领取了语音奖励 bool isGetPicturePrice = 14; // 是否领取了图片奖励 } message RecommendPersonListReply{ repeated RecommendPersonInfo manList = 1; // 男生列表 repeated RecommendPersonInfo womanList = 2;// 女生列表 } message HandpickPersonListReply{ repeated HandpickPersonInfo manList = 1; // 男生列表 repeated HandpickPersonInfo womanList = 2;// 女生列表 } message HandpickPersonInfo{ string personID = 1; // 查询目标的ID string nickname = 3;// 昵称 string avatarUrl =4;// 头像链接 int64 sex = 5;// 性别 int64 age = 6; // 年龄 string constellation = 7; // 星座 string signature = 8; // 签名 string province = 9;// 省 string city = 10;// 市 string area = 11;// 区 string introduceVoice = 12;// 介绍语音 bool isOnline = 14; // 是否在线 bool isVip = 15;// 是否是Vip int64 vipLevel = 16;// vip等级 bool isYearVip = 17;// 是否是年费Vip repeated string vipFunctions = 22;// vip功能 string picture = 23;// 精选图片 } message RecommendPersonInfo{ string personID = 1; // 查询目标的ID string nickname = 3;// 昵称 string avatarUrl =4;// 头像链接 int64 sex = 5;// 性别 int64 age = 6; // 年龄 string constellation = 7; // 星座 string signature = 8; // 签名 string province = 9;// 省 string city = 10;// 市 string area = 11;// 区 string introduceVoice = 12;// 介绍语音 repeated string tagList = 13;// 标签 bool isOnline = 14; // 是否在线 bool isVip = 15;// 是否是Vip int64 vipLevel = 16;// vip等级 bool isYearVip = 17;// 是否是年费Vip repeated string vipFunctions = 22;// vip功能 repeated string pictures = 23;// 相册 } message FindOverSevenDayAvatarReply{ repeated string list = 1;// 头像列表 } message PersonLookScripRequest{ string personId = 1; int64 scripId = 3;// 纸条id } message FindScripRequest { string personId = 1; int64 nextId = 3; int64 offset = 4; } message FindOtherScripRequest { string personId = 1; string myPersonId = 3; int64 nextId = 5; int64 offset = 6; } message ScripReply { repeated ScripInfo list = 1; int64 nextId = 2; } message ScripInfo { int64 scripId = 1;// 纸条ID string personId = 2;// 创建者ID string text = 4;// 纸条内容 string pictureUrl = 5;// 纸条配图 string personName = 6;// 创建者名称 int64 personSex = 7;// 创建者性别 int64 personAge = 8;// 创建者性别 string personAvatar = 9;// 创建者头像 int64 replyNum = 10;// 回复数 bool isCanReply = 11;// 是否可以回复 ScripReplyMessage myReply = 12;// 我的回复内容 int64 createTime = 13;// 创建时间 string constellation = 14; // 星座 bool isVip = 19;// 是否是Vip int64 vipLevel = 20;// vip等级 bool isYearVip = 21;// 是否是年费Vip repeated string vipFunctions = 22;// vip功能 } message ScripReplyMessage{ string messageType = 1;// 小纸条回复的类型 string scripContent = 2;// 小纸条回复的文本内容 string scripPictureUrl = 3;// 小纸条回复的图片链接 } message DeleteScripRequest { int64 id = 1; string personId = 2; } message CreateScripRequest { string personId = 1; string text = 4; string pictureUrl = 5; } message ScripID { int64 id = 1; } message ReplyScripRequest { string personId = 1; int64 scripId = 4; // 小纸条ID Message message = 5; // 回复内容 string msgType = 6; } message UpdateLastScripIDRequest{ int64 scripId = 2;// 纸条id } message UpdateLastScripIDDBRequest{ string personId = 1; int64 scripId = 2;// 纸条id } message MatchingRequest{ string personId = 1; // 查询目标的ID int64 sex = 4;// 性别 bool isNeedCheckSex = 5;// 是否跟性别强相关 string province = 7;// 省 string city = 8;// 市 int64 maxAge = 9;// 最大年龄 int64 minAge = 10;// 最小年龄 } message UserIDsParam{ string myUserID = 1; string otherUserID = 2; } message ManagerFindPersonListReply { repeated ManagerFindPersonInfo list = 1; string nextId = 2; int64 total = 3; } message ManagerFindPersonListReply2 { repeated ManagerFindPersonInfo list = 1; bool last = 2; int64 total = 3; int64 page = 4; int64 pageSize = 5; } message ManagerFindPersonListRequest{ string nextId = 1; int64 offset = 2; int64 id = 3;// 用户ID string name = 4;// 姓名 int64 sex = 5; // 性别 bool isFinishInformation = 6;// 是否筛选完善过资料的人 int64 startTime = 7;// 筛选开始时间 int64 endTime = 8;// 筛选结束时间 bool isBlack = 9;// 是否筛选拉黑用户 bool isHighQuality = 10;// 是否是优质用户 bool isSelectByActivity = 11;// 是否按活跃时间来筛选 } message ManagerFindPersonInfo { string id = 1; string nickname = 2;// 昵称 string avatarUrl =3;// 头像链接 int64 sex = 4;// 性别 repeated string pictures = 5; // 图片 int64 age = 6; // 年龄 string constellation = 7; // 星座 int64 credit = 8;// 积分 string signature = 9; // 签名 string introduceVoice = 10; // 介绍语音 string province = 11;// 省 string city = 12;// 市 int64 personId = 13; // 用户id(Number) bool isHighQuality = 14;// 是否是优质用户 bool isBlack = 15;// 是否被封禁 int64 weight = 16;// 权重 int64 lastLoginTime = 17;// 上次登录时间 string blackDetails = 18;// 拉黑理由(只有被拉黑的用户才会有) bool isVip = 19;// 是否是Vip int64 vipLevel = 20;// vip等级 bool isYearVip = 21;// 是否是年费Vip repeated string vipFunctions = 22;// vip功能 bool isHandpickUser = 23;// 是否是精选 string handpickPicture = 24;// 精选图片 } message ManagerUpdatePersonVoiceRequest { string personId = 1;// Id (string) string introduceVoice = 2;// 语音 } message ManagerUpdatePersonPicturesRequest { string personId = 1;// Id (string) repeated string pictures = 2;// 相册(主页图片) } message ManagerUpdatePersonSignatureRequest { string personId = 1;// Id (string) string signature = 2;// 介绍(签名) } message ManagerUpdatePersonAvatarRequest { string personId = 1;// Id (string) string avatarUrl = 2;// 头像 } message ManagerUpdatePersonNameRequest { string personId = 1;// Id (string) string nickname = 2; // 昵称 } message ManagerUpdatePersonWeightRequest{ string personId = 1;// Id (string) int64 weight = 2;// 权重等级 } message ManagerUpdatePersonIsBlackRequest{ string personId = 1;// Id (string) bool isBlack = 2;// 是否拉黑 } message ManagerFindRoomListRequest{ int64 roomId = 1;//房间ID int64 personId = 2;//用户ID int64 nextId = 3; int64 offset = 4; } message ManagerFindRoomListReply{ repeated RoomInfo list = 1; int64 nextId = 2; } message RoomInfo{ string person1Id = 1;// 用户1ID int64 person1UnreadNum = 3;// 用户1未读数 int64 person1SendNum = 4;// 用户1发送数 string person1AvatarUrl = 5;// 用户1头像 string person1Nickname = 6;// 用户1昵称 int64 person1Age = 7;// 用户1年龄 int64 person1Sex = 8;// 用户1性别 string person2Id = 9;// 用户2ID int64 person2UnreadNum = 11;// 用户2未读数 int64 person2SendNum = 12;// 用户2发送数 string person2AvatarUrl = 13;// 用户2头像 string person2Nickname = 14;// 用户2昵称 int64 person2Age = 15;// 用户2年龄 int64 person2Sex = 16;// 用户2性别 string lastContent = 17;// 上次发送内容 int64 lastTime = 18;// 上次发送时间 int64 likeability = 19;// 好感度 int64 roomId = 20; // 房间ID int64 userId1 = 21; // 用户的ID1 int64 userId2 = 22;// 用户的ID2 } message ManagerFindChatRecordListRequest{ int64 nextId = 1; int64 offset = 2; int64 roomId = 3; string personID = 5; // 查询目标的ID } message ManagerUpdateScripTextRequest{ int64 scripId = 1; string text = 2;// 纸条内容 } message ManagerUpdateScripPictureRequest{ int64 scripId = 1; string pictureUrl = 2;// 纸条配图链接 } message ManagerFindScripListRequest{ int64 nextId = 1; int64 offset = 2; int64 scripId = 3; int64 personId = 4;//用户ID (number) } message ManagerScripReply { repeated ManagerScripInfo list = 1; int64 nextId = 2; } message ManagerScripInfo { int64 scripId = 1;// 纸条ID string personId = 2;// 创建者ID string text = 4;// 纸条内容 string pictureUrl = 5;// 纸条配图 string personName = 6;// 创建者名称 int64 personSex = 7;// 创建者性别 int64 personAge = 8;// 创建者性别 string personAvatar = 9;// 创建者头像 int64 replyNum = 10;// 回复数 int64 createTime = 12;// 创建时间 string constellation = 13; // 星座 int64 id = 14;// id(number) } message ManagerFindReportListRequest{ int64 nextId = 1; int64 offset = 2; } message ManagerFindReportListReply{ repeated ManagerFindReportInfo list = 1; int64 nextId = 2; } message ManagerFindReportInfo { int64 id = 1;// 举报的ID string personId = 2;// 被举报者的ID int64 num = 4;// 被举报的次数 string personName = 6;// 被举报者的名称 int64 personSex = 7;// 被举报者的性别 int64 personAge = 8;// 被举报者的年龄 string personAvatar = 9;// 被举报者的头像 } message ManagerFindReportDetailsListRequest{ int64 nextId = 1; int64 offset = 2; string personId = 3;// 被举报人的ID } message ManagerFindReportDetailsListReply{ repeated ManagerFindReportDetailsInfo list = 1; int64 nextId = 2; } message ManagerFindReportDetailsInfo{ int64 id = 1;// 举报详情的ID string personId = 2;// 被举报者的ID int64 accountId = 3;// 被举报者的ID(number) string personName = 4;// 被举报者的昵称 string personAvatar = 5;// 被举报者的头像 string reportPersonId = 6;// 举报者的ID int64 reportAccountId = 7;// 举报者的ID(number) string reportPersonName = 8;// 举报者的昵称 string reportPersonAvatar = 9;// 举报者的头像 string reportResult = 10;// 被举报的理由 repeated string reportPicture = 11;// 被举报的图片 repeated string category = 12;// 举报的类型 int64 createTime = 13;// 举报时间 int64 chatId = 14;// 聊天房间ID } message GetLoginConfigRequest{ string appid = 1; } message GetLoginConfigReply{ string appid = 1; } message SendMessageReply{ bool isSelfOnline = 1;// 自己是否在线 } message ManagerFindCanHandpickUserListRequest{ string nextId = 1; int64 offset = 2; bool isHandpickUser = 3; // 是则筛选 已经是精选的用户 否则筛选还未检查过的优质用户 } message ManagerSetHandpickUserRequest{ repeated SetHandpickUserInfo passList = 1; repeated SetHandpickUserInfo unPassList = 2; } message ManagerSetHandpickUserOneRequest{ string userId = 1; string picture = 2; bool isHandpickUser = 3; } message SetHandpickUserInfo{ string userId = 1; string picture = 2; } message ManagerFindCanHandpickUserListReply{ repeated ManagerFindCanHandpickUserInfo list = 1; string nextId = 2; int64 total = 3; } message ManagerFindCanHandpickUserInfo{ string id = 1; string nickname = 2;// 昵称 string avatarUrl =3;// 头像链接 int64 sex = 4;// 性别 repeated string pictures = 5; // 图片 int64 age = 6; // 年龄 string constellation = 7; // 星座 int64 credit = 8;// 积分 string signature = 9; // 签名 string introduceVoice = 10; // 介绍语音 string province = 11;// 省 string city = 12;// 市 int64 personId = 13; // 用户id(Number) bool isHighQuality = 14;// 是否是优质用户 bool isBlack = 15;// 是否被封禁 int64 weight = 16;// 权重 int64 lastLoginTime = 17;// 上次登录时间 string blackDetails = 18;// 拉黑理由(只有被拉黑的用户才会有) bool isVip = 19;// 是否是Vip int64 vipLevel = 20;// vip等级 bool isYearVip = 21;// 是否是年费Vip repeated string vipFunctions = 22;// vip功能 bool isHandpickUser = 23;// 是否是精选 string handpickPicture = 24;// 精选图片 }