beteran-protobuf/proto/c2se/identity.proto
2022-08-13 20:18:21 +00:00

58 lines
1.0 KiB
Protocol Buffer

syntax = "proto3";
package bet.beteran.c2se.identity;
import "protobuf/rpc.proto";
message CheckUsernameForDuplicationRequest {
string username = 1;
}
message CheckUsernameForDuplicationResponse {
message Result {
bool duplicated = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
message CheckNicknameForDuplicationRequest {
string nickname = 1;
}
message CheckNicknameForDuplicationResponse {
message Result {
bool duplicated = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}
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;
}
message SigninRequest {
string security_code_hash = 1;
string security_code = 2;
string username = 3;
string password = 4;
}
message SigninResponse {
message Result {
string access_token = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}