2021-12-14 10:04:51 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
enum ErrorCode {
|
|
|
|
Internal = 0;
|
|
|
|
UserUnauthorized = 2;
|
|
|
|
RecordNotFound = 3;
|
|
|
|
WorkspaceNameInvalid = 100;
|
|
|
|
WorkspaceIdInvalid = 101;
|
|
|
|
AppColorStyleInvalid = 102;
|
|
|
|
WorkspaceDescTooLong = 103;
|
|
|
|
WorkspaceNameTooLong = 104;
|
|
|
|
AppIdInvalid = 110;
|
|
|
|
AppNameInvalid = 111;
|
|
|
|
ViewNameInvalid = 120;
|
|
|
|
ViewThumbnailInvalid = 121;
|
|
|
|
ViewIdInvalid = 122;
|
|
|
|
ViewDescTooLong = 123;
|
|
|
|
ViewDataInvalid = 124;
|
|
|
|
ViewNameTooLong = 125;
|
|
|
|
ConnectError = 200;
|
|
|
|
EmailIsEmpty = 300;
|
|
|
|
EmailFormatInvalid = 301;
|
|
|
|
EmailAlreadyExists = 302;
|
|
|
|
PasswordIsEmpty = 303;
|
|
|
|
PasswordTooLong = 304;
|
|
|
|
PasswordContainsForbidCharacters = 305;
|
|
|
|
PasswordFormatInvalid = 306;
|
|
|
|
PasswordNotMatch = 307;
|
|
|
|
UserNameTooLong = 308;
|
|
|
|
UserNameContainForbiddenCharacters = 309;
|
|
|
|
UserNameIsEmpty = 310;
|
|
|
|
UserIdInvalid = 311;
|
|
|
|
UserNotExist = 312;
|
2022-03-16 02:02:37 +00:00
|
|
|
TextTooLong = 400;
|
|
|
|
InvalidData = 401;
|
2021-12-14 10:04:51 +00:00
|
|
|
}
|