Files
no-copy/src/main/java/ru/soune/no_copy/dto/MessageCode.java
T

29 lines
693 B
Java
Raw Normal View History

package ru.soune.no_copy.dto;
public enum MessageCode {
SUCCESS(0, "Operation successful"),
2025-12-10 17:17:48 +07:00
REG_EMAIL_EXISTS(4001, "Email already registered"),
INVALID_FIELD(4002, "Invalid field"),
MSG_ID_NOT_FOUND(4003, "Message id not found"),
2025-12-10 17:17:48 +07:00
AUTH_EMAIL_NOT_FOUND(4005, "Email not found"),
AUTH_PASSWORD_NOT_MATCHES(4006, "Password does not match");
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;
}
}