diff --git a/src/main/java/dev/goormthon/ppoori/domain/policy/converter/PolicyConverter.java b/src/main/java/dev/goormthon/ppoori/domain/policy/converter/PolicyConverter.java index 72763eb..a909118 100644 --- a/src/main/java/dev/goormthon/ppoori/domain/policy/converter/PolicyConverter.java +++ b/src/main/java/dev/goormthon/ppoori/domain/policy/converter/PolicyConverter.java @@ -33,6 +33,7 @@ public static PolicyResponse.PolicyDetailDto toPolicyDetailDto(Policy policy, Li return PolicyResponse.PolicyDetailDto.builder() .id(policy.getId()) .name(policy.getName()) + .category(policy.getCategory().getValue()) .title(policy.getTitle()) .subject(policy.getSubject()) .detail(details) diff --git a/src/main/java/dev/goormthon/ppoori/domain/policy/dto/PolicyResponse.java b/src/main/java/dev/goormthon/ppoori/domain/policy/dto/PolicyResponse.java index 480c075..a904063 100644 --- a/src/main/java/dev/goormthon/ppoori/domain/policy/dto/PolicyResponse.java +++ b/src/main/java/dev/goormthon/ppoori/domain/policy/dto/PolicyResponse.java @@ -30,6 +30,7 @@ public static class PolicyDetailDto { private Long id; // PK private String name; // 정책명 private String title; // 제목 + private String category; // 카테고리 private String subject; // 지원 대상 private List detail; // 지원 내용 private String department; // 부서 diff --git a/src/main/java/dev/goormthon/ppoori/global/enums/Category.java b/src/main/java/dev/goormthon/ppoori/global/enums/Category.java index 987f88e..a0af3ce 100644 --- a/src/main/java/dev/goormthon/ppoori/global/enums/Category.java +++ b/src/main/java/dev/goormthon/ppoori/global/enums/Category.java @@ -2,10 +2,10 @@ public enum Category { - ACTIVITY_SUPPORT("ACTIVITY_SUPPORT"), - COMPETENCY_DEVELOPMENT("COMPETENCY_DEVELOPMENT"), - LIVING_SUPPORT("LIVING_SUPPORT"), - CAREER_SUPPORT("CAREER_SUPPORT"); + ACTIVITY_SUPPORT("활동 지원"), + COMPETENCY_DEVELOPMENT("역량 개발"), + LIVING_SUPPORT("생활 지원"), + CAREER_SUPPORT("진로 지원"); private String value;