| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- 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 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:"*"
- };
- };
- }
- 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;
- }
|