2022-07-27 06:45:53 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package bet.beteran.c2se.common.identity;
|
|
|
|
|
2022-08-03 07:31:10 +00:00
|
|
|
import "protobuf/rpc/error.proto";
|
|
|
|
|
2022-07-27 06:45:53 +00:00
|
|
|
// subject = bet.beteran.c2se.common.identity.CheckUsernameForDuplication;
|
|
|
|
message CheckUsernameForDuplicationRequest {
|
|
|
|
string username = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
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.c2se.common.identity.CheckNicknameForDuplication;
|
|
|
|
message CheckNicknameForDuplicationRequest {
|
|
|
|
string nickname = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// subject = bet.beteran.c2se.common.identity.Captcha
|
|
|
|
message CaptchaRequest {
|
|
|
|
}
|
|
|
|
|
|
|
|
message CaptchaResponse {
|
2022-08-03 07:31:10 +00:00
|
|
|
message Result {
|
2022-08-06 03:56:24 +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-27 06:45:53 +00:00
|
|
|
}
|