| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 | syntax = "proto3";package api.account;import "google/api/annotations.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/authorization",      body:"*"    };  };  rpc GetUserInfoDB (base.UserIDParam) returns (UserInfoDB);  rpc GetPartnerInfoDB (base.PartnerIDParam) returns (PartnerInfoDB);}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;}message TokenReply {  string token = 1;}message DebugLoginRequest {  int64 id = 1;  string code = 2;}message LoginToken {  string pid = 1;  string type = 2;}
 |