From 737e180a53eb109884a6b1fbbbeba93568fbad8b Mon Sep 17 00:00:00 2001 From: Jaeyoung Lim Date: Mon, 3 Jun 2024 21:20:56 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20enum=20=EB=B0=8F=20dto=20=ED=98=95?= =?UTF-8?q?=ED=83=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ppoori/domain/policy/converter/PolicyConverter.java | 1 + .../ppoori/domain/policy/dto/PolicyResponse.java | 1 + .../java/dev/goormthon/ppoori/global/enums/Category.java | 8 ++++---- 3 files changed, 6 insertions(+), 4 deletions(-) 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;