AppFlowy/rust-lib/flowy-user/src/protobuf/proto/errors.proto

24 lines
533 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
message UserError {
2021-08-30 14:44:17 +00:00
ErrorCode code = 1;
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;
InternalError = 100;
}