| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 | 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 CreateTestUser (google.protobuf.Empty) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/login/create",      body:"*"    };  };  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 SendPhoneCode (SendPhoneCodeRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/user/code/send",      body:"*"    };  };  rpc CheckPhoneCode (CheckPhoneCodeRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/user/code/check",      body:"*"    };  };  rpc GetIdentityByOpenID (OpenIDRequest) returns (IdentityInfo);}message OpenIDRequest{  string openId = 1;}message IdentityInfo{  string id = 1;  string type = 2;}message SendPhoneCodeRequest {  string phone = 1;}message CheckPhoneCodeRequest {  string phone = 1;  string code = 2;}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;}
 |