package cn.iocoder.yudao.module.srm.enums; import lombok.Getter; /** * 招投标模式枚举 */ @Getter public enum BiddingModeEnum { FULL("FULL", "完整版"), SIMPLE("SIMPLE", "简易版"); BiddingModeEnum(String code, String name) { this.code = code; this.name = name; } private final String code; private final String name; public static boolean isSimple(String mode) { return SIMPLE.getCode().equals(mode); } public static boolean isFull(String mode) { return mode == null || FULL.getCode().equals(mode); } }