syntax = "proto3"; package api.user; import "google/api/annotations.proto"; //import "google/protobuf/struct.proto"; import "google/protobuf/empty.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 { // 更新用户信息 rpc UpdateUserInformation (common.UpdateInformationRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/update/information", body:"*" }; }; // 获取用户详情 rpc GetUserInfo (google.protobuf.Empty) returns (UserInfo){ option (google.api.http) = { post: "/api/user/info", body:"*" }; }; // 获取用户访问数详情 rpc GetUserLookNum (google.protobuf.Empty) returns (statistics.LookMessageReply){ option (google.api.http) = { post: "/api/user/look/num", body:"*" }; }; // 用户发送验证码 rpc SendPhoneCode (common.SendPhoneCodeRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/code/send", body:"*" }; }; // 用户验证验证码 rpc CheckPhoneCode (common.CheckPhoneCodeRequest) returns (google.protobuf.Empty){ option (google.api.http) = { post: "/api/user/code/check", body:"*" }; }; // 检查用户是否与接待员关联 rpc CheckUserPartnerIsRelationship (common.PartnerIDParam) returns (chat.CheckUserPartnerIsRelationshipReply){ option (google.api.http) = { post: "/api/user/check/relationship", body:"*" }; }; // 创建用户与接待员的关联 rpc CreateUserPartnerIsRelationship (common.PartnerIDParam) returns (chat.CreateUserPartnerIsRelationshipReply){ option (google.api.http) = { post: "/api/user/create/relationship", body:"*" }; }; // 获取接待员的确认通过页面信息 rpc GetPartnerCircleInfo (KeyRequest) returns (common.AddFriendMessageInfo){ option (google.api.http) = { post: "/api/user/circle/info", body:"*" }; }; // 用户获取主页信息 rpc UserGetHomeInfo (common.PersonParam) returns (common.HomeInfo){ option (google.api.http) = { post: "/api/user/home", body:"*" }; }; // 通过用户IDs查看用户信息列表 rpc FindUserDBList (common.PersonIDList) returns (common.PersonDBReply); // 查看看过我的列表 rpc FindLookList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){ option (google.api.http) = { post: "/api/user/list/look", body:"*" }; }; // 查看我喜欢的列表 rpc FindLikeList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){ option (google.api.http) = { post: "/api/user/list/like", body:"*" }; }; // 查看喜欢我的列表 rpc FindLikedList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){ option (google.api.http) = { post: "/api/user/list/liked", body:"*" }; }; // 获取用户的访客数以及关注数 rpc GetLookAndLikeStatisticsMessage (common.PersonParam) returns (statistics.LookAndLikeMessageReply){ option (google.api.http) = { post: "/api/user/num/like_look", body:"*" }; }; // 微信SDK初始化 rpc WxConf (common.WxConfReq) returns (common.WxConfResponse){ option (google.api.http) = { post: "/api/wx/jssdk/config", body:"*" }; }; // 获取标签列表 rpc FindTagListByGroupNameAndSex (common.FindTagListByGroupNameAndSex) returns (common.TagListReply){ option (google.api.http) = { post: "/api/user/list/tag", body:"*" }; }; } message UserInfo{ string id = 1; // id string nickname = 2;// 昵称 string avatarUrl =3;// 头像链接 int64 age = 4;// 年龄 int64 sex = 5;// 性别 int64 credit = 6;// 积分 } message KeyRequest{ string key = 1; }