package cn.stylefeng.team.form.modular.manage.enums;

import cn.stylefeng.roses.kernel.rule.constants.RuleConstants;
import cn.stylefeng.roses.kernel.rule.exception.AbstractExceptionEnum;
import lombok.Getter;

@Getter
public enum FormTemplateExceptionEnum implements AbstractExceptionEnum {

    FORM_TEMPLATE_NOT_EXISTED(RuleConstants.USER_OPERATION_ERROR_TYPE_CODE + "10001", "查询结果不存在"),

    REPEAT_TEMPLATE_CODE(RuleConstants.USER_OPERATION_ERROR_TYPE_CODE + "10002", "存在重复编码的模板，请更换模板编码");

    private final String errorCode;

    private final String userTip;

    FormTemplateExceptionEnum(String errorCode, String userTip) {
        this.errorCode = errorCode;
        this.userTip = userTip;
    }

}
