| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 | syntax = "proto3";package api.account;import "google/api/annotations.proto";import "api/common/common.proto";//import "api/base/base.proto";//import "google/protobuf/struct.proto";import "google/protobuf/empty.proto";option go_package = "git.ikuban.com/server/pw-protobuf/api/account;account";option java_multiple_files = true;option java_package = "api.account";service Account {  rpc DebugLogin (DebugLoginRequest) returns (TokenReply){    option (google.api.http) = {      post: "/api/login/debug",      body:"*"    };  };  rpc Authorization (AuthorizationRequest) returns (TokenReply){    option (google.api.http) = {      post: "/api/login/authorization",      body:"*"    };  };  rpc RandomNickname (common.SexReq) returns (RandomNicknameReply){    option (google.api.http) = {      post: "/api/common/random/nickname",      body:"*"    };  };  rpc RandomAvatar (common.SexReq) returns (RandomAvatarReply){    option (google.api.http) = {      post: "/api/common/random/avatar",      body:"*"    };  };  rpc RandomAvatarList (common.SexReq) returns (RandomAvatarListReply){};  // 通过openID和appID查询  rpc GetIdentityByOpenIDAndAppID (OpenIDAndAppIDRequest) returns (IdentityInfo);  // 通过openID和appID查询 未查到就创建  rpc GetIdentityByOpenIDAndAppIDAndCreate (OpenIDAndAppIDRequest) returns (IdentityInfo);  // 通过分组名和性别查询标签  rpc FindTagListBySex (common.SexReq) returns (common.TagListReply);  // 通过标签IDs查询标签  rpc FindTagsByIDs (common.Ids) returns (common.TagListReply);  // 随机介绍接口  rpc RandomIntroduce (common.SexReq) returns (common.RandomIntroduceReply){    option (google.api.http) = {      post: "/api/common/random/introduce",      body:"*"    };  };  // 通过微信下载语音并上传到七牛  rpc UploadMaterialVoice (MediaID) returns (MaterialLink){    option (google.api.http) = {      post: "/api/common/material/upload/voice",      body:"*"    };  };  // 通过类型获取表情包列表  rpc FindMemeByType (common.MemeRequest) returns (common.MemeList){};  // 获取对方性别的聊天话题  rpc FindChatTopic (common.FindChatTopicRequest) returns (common.ChatTopicList){};  // 随机表情包  rpc RandomMeme (common.RandomNum) returns (common.CommonTextList){};  // 随机打招呼  rpc RandomSwiftMessage (common.RandomNumAndSex) returns (common.CommonTextList){};  // 检查文本-百度云  rpc CheckText (CheckTextRequest) returns (CheckTextReply){}  // 获取用户登录配置  rpc GetUserLoginConfig (common.GetLoginConfigRequest) returns (common.GetLoginConfigReply){    option (google.api.http) = {      post: "/api/config/login",      body:"*"    };  };  // 通过accountID获取Identify信息  rpc GetIdentifyByAccountID (GetIdentifyByAccountIDRequest) returns (GetIdentifyByAccountIDReply){};  // 用户关注  rpc UserSubscribe (OpenIDAndAppIDRequest) returns (google.protobuf.Empty){};  // 用户取关  rpc UserUnsubscribe (OpenIDAndAppIDRequest) returns (google.protobuf.Empty){};}message GetIdentifyByAccountIDRequest{  int64 accountId = 1;}message GetIdentifyByAccountIDReply{  string openId = 1;  string appid = 2;}message CheckTextRequest{  string text = 1;// 待审核的文本}message CheckTextReply{  bool isPass = 1;// 是否通过}message MediaID{  string mediaId = 1;}message MaterialLink {  string link = 1;}message RandomNicknameReply{  string nickname = 1;}message RandomAvatarReply{  string avatarUrl = 1;}message RandomAvatarListReply{  repeated string list = 1;}message OpenIDAndAppIDRequest{  string openId = 1;  string appId = 2;}message IdentityInfo{  string pid = 1;}message UserInfoDB{  string id = 1; // id  string nickname = 2;// 昵称  string avatarUrl =3;// 头像链接  string phone = 4;// 手机号  int64 sex = 5;// 性别  int64 credit = 6;// 积分}message PartnerInfoDB{  string id = 1; // id  string nickname = 2;// 昵称  string avatarUrl =3;// 头像链接  string phone = 4;// 手机号  int64 sex = 5;// 性别  int64 credit = 6;// 积分}message AuthorizationRequest {  string jsCode = 1;  string appId = 2;  string type = 3;  string fromOpenId = 4;  int64 sex = 5;}message TokenReply {  string token = 1;  string appId = 2;}message DebugLoginRequest {  int64 id = 1;  string code = 2;}message LoginToken {  string pid = 1;  string type = 2;}
 |