# AdjErrorCodeEnum.java

    package cloud.wconnect.frontoffice.cons.adjustment;

    import lombok.AllArgsConstructor;
    import lombok.Getter;

    /**
     * 枚举类: 通用性错误码描述
     *
     * @author yyt
     * @date 2026/3/18
     */
    @Getter
    @AllArgsConstructor
    public enum AdjErrorCodeEnum {

        /**
         * 不能选择当前类型下审批配置上的人员作为补位审批人员
         */
        CANNOT_SELECT_APPROVE_CONFIG_USER_AS_SUBSTITUTE_USER(43001, "adj.cannot-select-approve-config-user-as-substitute-user"),

        /**
         * 补位审批人员没有审批权限
         */
        SUBSTITUTE_USER_NOT_HAVE_APPROVE_PERMISSION(43002, "adj.substitute-user-not-have-approve-permission"),

        /**
         * 不能新增补位配置，当前类型下已存在有效的补位配置
         */
        CANNOT_ADD_OUT_OF_OFFICE_CONFIG_WHEN_EXIST_EFFECTIVE_CONFIG(43003, "adj.cannot-add-out-of-office-config-when-exist-effective-config"),

        /**
         * 只有未生效的补位配置支持编辑
         */
        CANNOT_MODIFY_OUT_OF_OFFICE_CONFIG_WHEN_EFFECTIVE(43004, "adj.only-inactive-configurations-support-editing"),

        /**
         * 开始日期必须大于当天
         */
        START_DATE_CANNOT_LESS_THAN_TODAY(43005, "adj.start-date-cannot-less-than-today"),

        /**
         * 只有生效中的补位配置支持关闭
         */
        CANNOT_CLOSE_OUT_OF_OFFICE_CONFIG_WHEN_EFFECTIVE(43006, "adj.only-effective-configurations-support-close"),

        /**
         * 只有未生效的补位配置支持删除
         */
        CANNOT_DELETE_OUT_OF_OFFICE_CONFIG_WHEN_EFFECTIVE(43007, "adj.only-inactive-configurations-support-delete"),

        /**
         * 不能设置自己是补位审批人员
         */
        SUBSTITUTE_USER_CANNOT_BE_YOURSELF(43008, "adj.substitute-user-cannot-be-yourself");

        private final int code;

        private final String i18nCode;

    }