Skip to content

Commit

Permalink
fix: enum 및 dto 형태 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
limjustin committed Jun 3, 2024
1 parent b4ef44c commit 737e180
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> detail; // 지원 내용
private String department; // 부서
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/dev/goormthon/ppoori/global/enums/Category.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 737e180

Please sign in to comment.