2022-07-15 06:14:09 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package bet.beteran.ss.member.identity;
|
|
|
|
|
|
|
|
import "protobuf/rpc/error.proto";
|
|
|
|
import "models/core/network.proto";
|
|
|
|
|
2022-07-27 06:45:53 +00:00
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member.identity.CheckUsernameForDuplication;
|
|
|
|
message CheckUsernameForDuplicationRequest {
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
string username = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CheckUsernameForDuplicationResponse {
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional bool duplicated = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member.identity.CheckNicknameForDuplication;
|
|
|
|
message CheckNicknameForDuplicationRequest {
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
string nickname = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CheckNicknameForDuplicationResponse {
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional bool duplicated = 2;
|
|
|
|
}
|
|
|
|
|
2022-07-15 06:14:09 +00:00
|
|
|
// subject = bet.beteran.ss.member.identity.Captcha
|
|
|
|
message CaptchaRequest {
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CaptchaResponse {
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
2022-07-27 06:45:53 +00:00
|
|
|
optional string token = 2;
|
|
|
|
optional string image = 3;
|
2022-07-15 06:14:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member.identity.Signin
|
|
|
|
message SigninRequest {
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
2022-07-27 06:45:53 +00:00
|
|
|
string token = 2;
|
|
|
|
string security_code = 3;
|
|
|
|
string username = 4;
|
|
|
|
string password = 5;
|
2022-07-15 06:14:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message SigninResponse {
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
2022-07-27 07:40:51 +00:00
|
|
|
optional string session_id = 2;
|
2022-07-15 06:14:09 +00:00
|
|
|
}
|