2022-07-15 06:14:09 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package bet.beteran.ss.member.identity;
|
|
|
|
|
2022-08-03 07:31:10 +00:00
|
|
|
import "protobuf/rpc/error.proto";
|
2022-07-15 06:14:09 +00:00
|
|
|
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 {
|
2022-08-03 07:31:10 +00:00
|
|
|
message Result {
|
|
|
|
bool duplicated = 1;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
2022-07-27 06:45:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// subject = bet.beteran.ss.member.identity.CheckNicknameForDuplication;
|
|
|
|
message CheckNicknameForDuplicationRequest {
|
|
|
|
bet.beteran.core.network.Client client = 1;
|
|
|
|
string nickname = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CheckNicknameForDuplicationResponse {
|
2022-08-03 07:31:10 +00:00
|
|
|
message Result {
|
|
|
|
bool duplicated = 1;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
2022-07-27 06:45:53 +00:00
|
|
|
}
|
|
|
|
|
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 {
|
2022-08-03 07:31:10 +00:00
|
|
|
message Result {
|
2022-08-06 03:59:02 +00:00
|
|
|
string security_code_hash = 1;
|
2022-08-03 07:31:10 +00:00
|
|
|
string image = 2;
|
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
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-08-06 03:59:02 +00:00
|
|
|
string security_code_hash = 2;
|
2022-07-27 06:45:53 +00:00
|
|
|
string security_code = 3;
|
|
|
|
string username = 4;
|
|
|
|
string password = 5;
|
2022-07-15 06:14:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message SigninResponse {
|
2022-08-03 07:31:10 +00:00
|
|
|
message Result {
|
2022-08-08 07:11:48 +00:00
|
|
|
string access_token = 1;
|
2022-08-03 07:31:10 +00:00
|
|
|
}
|
|
|
|
optional bet.protobuf.rpc.Error error = 1;
|
|
|
|
optional Result result = 2;
|
2022-07-15 06:14:09 +00:00
|
|
|
}
|