BusinessErrorCodes.java 1.39 KB
package com.myxrk.constant;

import com.myxrk.common.constants.ErrorCode;
import lombok.Generated;

/**
 * @author kuihai
 */
public enum BusinessErrorCodes implements ErrorCode {

    /**
     * 权限中心--角色管理 20200 开始
     */
    ROLE_ENTP_ID_UNKNOWN(20200, "未知的类型"),
    ROLE_ID_NULL(20201, "角色ID为空"),
    /**
     * 权限中心--资源管理 20400开始
     */
    ENTP_TYPE_NOT_NULL(20400, "主题类型不能为空!"),

    /**
     * 权限中心--部门管理 20600 开始
     */
    DEPT_NAME_MUST_BE_UNIQUE(20600, "部门名称不能重复!"),
    /**
     * 权限中心--员工管理 20800开始
     */
    EMPLOYEE_INFO_NULL(20800, "员工信息为空!"),
    EMPLOYEE_PASSWORD_NOT_ROLE(20801, "请输入 8 位字母+数字组合的新密码"),
    EMPLOYEE_PASSWORD_NOT_SAME(20802, "您的新密码和确认密码不一致,请重新输入"),

    /**  企业管理 10531 - 10560 */
    PASSWORD_NOT_SAME(10543, "您的新密码和确认密码不一致,请重新输入"),

    /**  企业管理 10531 - 10560 */

    ;

    private final int code;
    private final String message;

    BusinessErrorCodes(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Generated
    public int getCode() {
        return this.code;
    }

    @Generated
    public String getMessage() {
        return this.message;
    }
}