beteran-protobuf/proto/c2se/identity.proto

58 lines
1.0 KiB
Protocol Buffer
Raw Normal View History

2022-07-27 06:45:53 +00:00
syntax = "proto3";
2022-08-13 20:18:21 +00:00
package bet.beteran.c2se.identity;
2022-07-27 06:45:53 +00:00
2022-08-13 20:18:21 +00:00
import "protobuf/rpc.proto";
2022-08-03 07:31:10 +00:00
2022-07-27 06:45:53 +00:00
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
}
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
}
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
}
2022-08-13 20:18:21 +00:00
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;
}