mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
504 B
30 lines
504 B
syntax = "proto3";
|
|
|
|
package auth;
|
|
|
|
option go_package = "github.com/rocboss/paopao-ce/auto/rpc/v1";
|
|
|
|
message User {
|
|
string phoneNum = 1;
|
|
}
|
|
|
|
message UserVerify {
|
|
string phoneNum = 1;
|
|
string VerificationCode = 2;
|
|
}
|
|
|
|
message LoginReply {
|
|
int32 statuCode = 1;
|
|
string token = 2;
|
|
}
|
|
|
|
message ActionReply {
|
|
int32 statusCode = 1;
|
|
}
|
|
|
|
service Authenticate {
|
|
rpc preLogin(User) returns (ActionReply);
|
|
rpc login(User) returns (LoginReply);
|
|
rpc logout(User) returns (ActionReply);
|
|
}
|