| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 | 
							- 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/partner/partner.proto";
 
- import "api/base/base.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 (UpdateUserInformationRequest) 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 CheckUserPartnerIsRelationship (base.PartnerIDParam) returns (chat.CheckUserPartnerIsRelationshipReply){
 
-     option (google.api.http) = {
 
-       post: "/api/user/check/relationship",
 
-       body:"*"
 
-     };
 
-   };
 
-   rpc CreateUserPartnerIsRelationship (base.PartnerIDParam) returns (chat.CreateUserPartnerIsRelationshipReply){
 
-     option (google.api.http) = {
 
-       post: "/api/user/create/relationship",
 
-       body:"*"
 
-     };
 
-   };
 
-   rpc GetPartnerCircleInfo (base.PartnerIDParam) returns (partner.PartnerCircleInfo){
 
-     option (google.api.http) = {
 
-       post: "/api/partner/circle/info",
 
-       body:"*"
 
-     };
 
-   };
 
-   rpc GetUserHomeInfo (base.UserIDParam) returns (UserHomeInfo){
 
-     option (google.api.http) = {
 
-       post: "/api/user/circle/info",
 
-       body:"*"
 
-     };
 
-   };
 
- }
 
- message UserHomeInfo{
 
-   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; // 介绍语音
 
-   int64 likedNum = 12;// 喜欢我
 
-   int64 lookNum = 13;// 看过我
 
- }
 
- message UserInfo{
 
-   string id = 1; // id
 
-   string nickname = 2;// 昵称
 
-   string avatarUrl =3;// 头像链接
 
-   int64 age = 4;// 年龄
 
-   int64 sex = 5;// 性别
 
-   int64 credit = 6;// 积分
 
-   int64 likeNum = 7;// 我喜欢
 
-   int64 likedNum = 8;// 喜欢我
 
-   int64 lookNum = 9;// 看过我
 
- }
 
- message UpdateUserInformationRequest {
 
-   string Nickname = 1;
 
-   string avatarUrl = 2;
 
-   int64 sex = 3;
 
- }
 
 
  |