enhanced.mybaits.generator.enums.ServiceImplExtraMethodEnum Maven / Gradle / Ivy
package enhanced.mybaits.generator.enums;
/**
* Service 接口实现类扩展方法名称枚举类
* @author 徐明龙 XuMingLong
*/
public enum ServiceImplExtraMethodEnum {
/**
* 新增表单校验
* @author 徐明龙 XuMingLong
*/
VERIFY_FORM_FOR_INSERT("verifyFormForAddOnce","新增表单校验"),
/**
* 修改表单校验
* @author 徐明龙 XuMingLong
*/
VERIFY_FORM_FOR_UPDATE("verifyFormForUpdate","修改表单校验"),
/**
* 删除表单校验
* @author 徐明龙 XuMingLong
*/
VERIFY_FORM_FOR_DELETE("verifyFormForDelete","删除表单校验"),
;
private final String value;
private final String description;
private ServiceImplExtraMethodEnum(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static ServiceImplExtraMethodEnum resolve(String typeCode) {
for (ServiceImplExtraMethodEnum type : values()) {
if (type.value.equals(typeCode)) {
return type;
}
}
return null;
}
}