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.
paopao-ce/proto/core/v1/auth.proto

30 lines
536 B

syntax = "proto3";
package core.v1;
option go_package = "github.com/rocboss/paopao-ce/auto/connect/core/v1;corev1";
message User {
string phone_num = 1;
}
message UserVerify {
string phone_num = 1;
string verification_code = 2;
}
message LoginReply {
int32 status_code = 1;
string token = 2;
}
message ActionReply {
int32 status_code = 1;
}
service AuthenticateService {
rpc preLogin(User) returns (ActionReply);
rpc login(User) returns (LoginReply);
rpc logout(User) returns (ActionReply);
}