2021-07-11 13:54:55 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
message UserError {
|
2021-07-25 00:13:59 +00:00
|
|
|
UserErrCode code = 1;
|
2021-07-11 13:54:55 +00:00
|
|
|
string msg = 2;
|
|
|
|
}
|
2021-07-25 00:13:59 +00:00
|
|
|
enum UserErrCode {
|
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-07-11 13:54:55 +00:00
|
|
|
UserNotLoginYet = 10;
|
|
|
|
ReadCurrentIdFailed = 11;
|
|
|
|
WriteCurrentIdFailed = 12;
|
|
|
|
EmailInvalid = 20;
|
|
|
|
PasswordInvalid = 21;
|
|
|
|
UserNameInvalid = 22;
|
2021-07-14 13:12:52 +00:00
|
|
|
UserWorkspaceInvalid = 23;
|
|
|
|
UserIdInvalid = 24;
|
2021-07-19 13:05:49 +00:00
|
|
|
CreateDefaultWorkspaceFailed = 25;
|
2021-07-24 07:05:47 +00:00
|
|
|
DefaultWorkspaceAlreadyExist = 26;
|
2021-08-21 05:35:15 +00:00
|
|
|
NetworkError = 100;
|
2021-07-11 13:54:55 +00:00
|
|
|
}
|