beteran-protobuf/proto/c2se/common/identity.proto
2022-08-06 03:56:24 +00:00

46 lines
1001 B
Protocol Buffer

syntax = "proto3";
package bet.beteran.c2se.common.identity;
import "protobuf/rpc/error.proto";
// subject = bet.beteran.c2se.common.identity.CheckUsernameForDuplication;
message CheckUsernameForDuplicationRequest {
string username = 1;
}
message CheckUsernameForDuplicationResponse {
message Result {
bool duplicated = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.c2se.common.identity.CheckNicknameForDuplication;
message CheckNicknameForDuplicationRequest {
string nickname = 1;
}
message CheckNicknameForDuplicationResponse {
message Result {
bool duplicated = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
// subject = bet.beteran.c2se.common.identity.Captcha
message CaptchaRequest {
}
message CaptchaResponse {
message Result {
string security_code_hash = 1;
string image = 2;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}