2025-12-10 02:37:31 +07:00
|
|
|
package ru.soune.no_copy.dto;
|
|
|
|
|
|
|
|
|
|
public enum MessageCode {
|
|
|
|
|
SUCCESS(0, "Operation successful"),
|
|
|
|
|
REG_EMAIL_EXISTS(2001, "Email already registered"),
|
|
|
|
|
INVALID_FIELD(2002, "Invalid field"),
|
|
|
|
|
MSG_ID_NOT_FOUND(2004, "Message id not found"),
|
|
|
|
|
|
2025-12-10 04:51:07 +07:00
|
|
|
AUTH_EMAIL_NOT_FOUND(2005, "Email not found"),
|
|
|
|
|
AUTH_PASSWORD_NOT_MATCHES(2006, "Password does not match");
|
2025-12-10 02:37:31 +07:00
|
|
|
|
|
|
|
|
private final Integer code;
|
|
|
|
|
|
|
|
|
|
private final String description;
|
|
|
|
|
|
|
|
|
|
MessageCode(Integer code, String description) {
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
}
|