package com.zy.ai.domain.autotune; public enum AutoTuneTargetType { SYS_CONFIG("sys_config"), STATION("station"), CRN("crn"), DUAL_CRN("dual_crn"); private final String code; AutoTuneTargetType(String code) { this.code = code; } public String getCode() { return code; } public static AutoTuneTargetType fromCode(String code) { if (code == null) { return null; } for (AutoTuneTargetType targetType : values()) { if (targetType.code.equals(code.trim())) { return targetType; } } return null; } }