fix: dap-was-dapmt 바라보도록 수정

This commit is contained in:
juheelee
2026-08-20 15:00:10 +09:00
parent 52ae31d853
commit fa5335131e

View File

@@ -0,0 +1,18 @@
package io.shinhanlife.dat.report.model;
import java.util.Locale;
/** Report 생성 시 참조할 Tool 소스 프로젝트. */
public enum ToolSourceType {
DAP_WAS_DAPMT,
DAP_ADMIN;
public static ToolSourceType from(String value) {
if (value == null || value.isBlank()) return DAP_WAS_DAPMT;
try {
return valueOf(value.trim().replace('-', '_').toUpperCase(Locale.ROOT));
} catch (IllegalArgumentException exception) {
throw new IllegalArgumentException("지원하지 않는 Tool 소스 유형입니다: " + value);
}
}
}