beteran-protobuf/proto/c2se/common/identity.proto

46 lines
988 B
Protocol Buffer
Raw Normal View History

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 {
string token = 1;
string image = 2;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
2022-07-27 06:45:53 +00:00
}