2021-07-11 13:54:55 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
message UserError {
|
2021-08-30 14:44:17 +00:00
|
|
|
ErrorCode code = 1;
|
2021-07-11 13:54:55 +00:00
|
|
|
string msg = 2;
|
|
|
|
}
|
2021-08-30 14:44:17 +00:00
|
|
|
enum ErrorCode {
|
2021-09-16 04:35:55 +00:00
|
|
|
EmailIsEmpty = 0;
|
|
|
|
EmailFormatInvalid = 1;
|
|
|
|
EmailAlreadyExists = 2;
|
|
|
|
PasswordIsEmpty = 10;
|
|
|
|
PasswordTooLong = 11;
|
|
|
|
PasswordContainsForbidCharacters = 12;
|
|
|
|
PasswordFormatInvalid = 13;
|
|
|
|
PasswordNotMatch = 14;
|
|
|
|
UserNameTooLong = 20;
|
|
|
|
UserNameContainForbiddenCharacters = 21;
|
|
|
|
UserNameIsEmpty = 22;
|
|
|
|
UserIdInvalid = 23;
|
|
|
|
UserUnauthorized = 24;
|
|
|
|
UserNotExist = 25;
|
2021-09-08 05:50:20 +00:00
|
|
|
InternalError = 100;
|
2021-07-11 13:54:55 +00:00
|
|
|
}
|