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-07-11 13:54:55 +00:00
|
|
|
Unknown = 0;
|
2021-07-19 08:15:20 +00:00
|
|
|
UserDatabaseInitFailed = 1;
|
|
|
|
UserDatabaseWriteLocked = 2;
|
|
|
|
UserDatabaseReadLocked = 3;
|
|
|
|
UserDatabaseDidNotMatch = 4;
|
|
|
|
UserDatabaseInternalError = 5;
|
2021-07-24 10:55:13 +00:00
|
|
|
SqlInternalError = 6;
|
2021-08-31 15:01:46 +00:00
|
|
|
DatabaseConnectError = 7;
|
2021-07-11 13:54:55 +00:00
|
|
|
UserNotLoginYet = 10;
|
|
|
|
ReadCurrentIdFailed = 11;
|
|
|
|
WriteCurrentIdFailed = 12;
|
2021-08-21 09:17:54 +00:00
|
|
|
EmailIsEmpty = 20;
|
|
|
|
EmailFormatInvalid = 21;
|
|
|
|
EmailAlreadyExists = 22;
|
|
|
|
PasswordIsEmpty = 30;
|
|
|
|
PasswordTooLong = 31;
|
|
|
|
PasswordContainsForbidCharacters = 32;
|
|
|
|
PasswordFormatInvalid = 33;
|
2021-09-01 08:08:32 +00:00
|
|
|
PasswordNotMatch = 34;
|
2021-08-21 09:17:54 +00:00
|
|
|
UserNameTooLong = 40;
|
|
|
|
UserNameContainsForbiddenCharacters = 41;
|
|
|
|
UserNameIsEmpty = 42;
|
|
|
|
UserWorkspaceInvalid = 50;
|
|
|
|
UserIdInvalid = 51;
|
|
|
|
CreateDefaultWorkspaceFailed = 52;
|
|
|
|
DefaultWorkspaceAlreadyExist = 53;
|
2021-08-24 05:10:53 +00:00
|
|
|
ServerError = 100;
|
2021-07-11 13:54:55 +00:00
|
|
|
}
|