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
536 B
30 lines
536 B
2 years ago
|
syntax = "proto3";
|
||
|
|
||
1 year ago
|
package core.v1;
|
||
2 years ago
|
|
||
1 year ago
|
option go_package = "github.com/rocboss/paopao-ce/auto/connect/core/v1;corev1";
|
||
2 years ago
|
|
||
|
message User {
|
||
1 year ago
|
string phone_num = 1;
|
||
2 years ago
|
}
|
||
|
|
||
|
message UserVerify {
|
||
1 year ago
|
string phone_num = 1;
|
||
|
string verification_code = 2;
|
||
2 years ago
|
}
|
||
|
|
||
|
message LoginReply {
|
||
1 year ago
|
int32 status_code = 1;
|
||
2 years ago
|
string token = 2;
|
||
|
}
|
||
|
|
||
|
message ActionReply {
|
||
1 year ago
|
int32 status_code = 1;
|
||
2 years ago
|
}
|
||
|
|
||
1 year ago
|
service AuthenticateService {
|
||
2 years ago
|
rpc preLogin(User) returns (ActionReply);
|
||
|
rpc login(User) returns (LoginReply);
|
||
|
rpc logout(User) returns (ActionReply);
|
||
|
}
|