| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- 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 User1AndUser2IdParam {
- string user1 = 1;
- string user2 = 2;
- }
- message PartnerIDParam {
- string partnerID = 1;
- }
- message PersonParam{
- string personID = 1; // 查询目标的ID
- string personType = 2; // 类型
- }
- message UserIDParam {
- string userId = 1;
- }
- // 主页信息
- 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; // 星座
- string area = 8; // 地区
- repeated string tag = 9; // 标签
- string signature = 10; // 签名
- string introduceVoice = 11; // 介绍语音
- }
- // 添加好友页面信息
- 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;// 是否是来源我们
- }
- 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 area = 8; // 地区
- string introduceVoice = 9; // 介绍语音
- }
- message ListPageRequest{
- int64 nextId = 1;
- int64 offset = 2;
- }
- message SendPhoneCodeRequest {
- string phone = 1;
- }
- message CheckPhoneCodeRequest {
- string phone = 1;
- string code = 2;
- }
|