| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 | 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:"*"    };  };  // 通过openID和appID查询  rpc GetIdentityByOpenIDAndAppID (OpenIDAndAppIDRequest) returns (IdentityInfo);  // 通过type和PID查询  rpc GetIdentityByTypeAndPID (common.PersonParam) returns (IdentityInfo);  // 通过原公众号openID和appID查询  rpc GetIdentityByFromOpenIDAndAppID (OpenIDAndAppIDRequest) returns (IdentityInfo);  // 通过分组名和性别查询标签  rpc FindTagListBySex (common.SexReq) returns (common.TagListReply);  // 通过标签IDs查询标签  rpc FindByIDs (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:"*"    };  };}message MediaID{  string mediaId = 1;}message MaterialLink {  string link = 1;}message RandomNicknameReply{  string nickname = 1;}message RandomAvatarReply{  string avatarUrl = 1;}message OpenIDAndAppIDRequest{  string openId = 1;  string appId = 2;}message IdentityInfo{  string pid = 1;  string type = 2;  int64 identityID = 3;}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;}message TokenReply {  string token = 1;  string appId = 2;}message DebugLoginRequest {  int64 id = 1;  string code = 2;}message LoginToken {  string pid = 1;  string type = 2;}
 |