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 UserAndPartnerIdParam { string partnerId = 1; string userId = 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 PersonParam{ string personID = 1; // 查询目标的ID string personType = 2; // 类型 } 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;// 区 } 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;// 区 } 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;// 区 } 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;//是否完善消息 } message ListPageRequest{ int64 nextId = 1; int64 offset = 2; } message ListPage2Request{ string nextId = 1; int64 offset = 2; } message ListPageAndPersonRequest{ string nextId = 1; int64 offset = 2; string personID = 3; // 查询目标的ID string personType = 4; // 类型 } message SendPhoneCodeRequest { string phone = 1; } message CheckPhoneCodeRequest { string phone = 1; string code = 2; } 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 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 OnlinePersonListReply{ repeated OnlinePersonInfo list = 1; string nextId = 2; } message OnlinePersonInfo{ string personID = 1; // 查询目标的ID string personType = 2; // 类型 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;// 区 } 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 isSubscribe = 6; // 是否关注 } message ChatPersonMsg{ string id = 1; // id string type = 2; // 类型 string nickname = 3; // 昵称 string avatar = 4; // 头像 } 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; // 消息状态 } message Message{ string content = 1; // 文本内容 string materialUrl = 2; // 素材链接 int64 second = 3;// 音频的秒数 } message FindChatRoomMsgRequest{ int64 roomId = 1; } message FindChatRecordListRequest{ int64 nextId = 1; int64 offset = 2; int64 roomId = 3; }