Skip to content

Commit

Permalink
fix: ProjectResponse에 yaer 추가 및 테스트코드에도 yaer 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yeobi01 committed Sep 5, 2024
1 parent b2b310b commit 2829b1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class ProjectResponse {
private ProjectCategory projectCategory;
private AwardStatus awardStatus;
private List<String> techStacks;
private Integer year;
private Integer likeCount;
private Boolean like;
private Boolean bookMark;
Expand Down Expand Up @@ -55,6 +56,7 @@ public static ProjectResponse of(User user, Project project){
project.getCategory(),
project.getAwardStatus(),
techStackList,
project.getYear(),
project.getLikes().size(),
like,
bookMark
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ void getProjects() throws Exception {
ProjectCategory.BIG_DATA_ANALYSIS,
AwardStatus.FIRST,
List.of("파이썬", "SQL"),
2023,
100,
false,
false
Expand All @@ -105,6 +106,7 @@ void getProjects() throws Exception {
ProjectCategory.AI_MACHINE_LEARNING,
AwardStatus.SECOND,
List.of("파이썬", "OpenCV"),
2023,
100,
false,
true
Expand Down Expand Up @@ -147,6 +149,7 @@ void getProjects() throws Exception {
fieldWithPath("content[].projectCategory").type(JsonFieldType.STRING).description("프로젝트 카테고리: COMPUTER_VISION, SYSTEM_NETWORK, WEB_APPLICATION, SECURITY_SOFTWARE_ENGINEERING, NATURAL_LANGUAGE_PROCESSING, BIG_DATA_ANALYSIS, AI_MACHINE_LEARNING, INTERACTION_AUGMENTED_REALITY"),
fieldWithPath("content[].awardStatus").type(JsonFieldType.STRING).description("수상 여부: NONE, FIRST, SECOND, THIRD, FOURTH, FIFTH"),
fieldWithPath("content[].techStacks").type(JsonFieldType.ARRAY).description("기술 스택"),
fieldWithPath("content[].year").type(JsonFieldType.NUMBER).description("프로젝트 년도"),
fieldWithPath("content[].likeCount").type(JsonFieldType.NUMBER).description("좋아요 수"),
fieldWithPath("content[].like").type(JsonFieldType.BOOLEAN).description("좋아요 여부"),
fieldWithPath("content[].bookMark").type(JsonFieldType.BOOLEAN).description("북마크 여부"),
Expand Down Expand Up @@ -761,6 +764,7 @@ void getAwardProjects() throws Exception {
ProjectCategory.BIG_DATA_ANALYSIS,
AwardStatus.FIRST,
List.of("파이썬", "SQL"),
2023,
100,
false,
false
Expand All @@ -781,6 +785,7 @@ void getAwardProjects() throws Exception {
ProjectCategory.AI_MACHINE_LEARNING,
AwardStatus.SECOND,
List.of("파이썬", "OpenCV"),
2023,
100,
false,
true
Expand Down Expand Up @@ -821,6 +826,7 @@ void getAwardProjects() throws Exception {
fieldWithPath("content[].projectCategory").type(JsonFieldType.STRING).description("프로젝트 카테고리: COMPUTER_VISION, SYSTEM_NETWORK, WEB_APPLICATION, SECURITY_SOFTWARE_ENGINEERING, NATURAL_LANGUAGE_PROCESSING, BIG_DATA_ANALYSIS, AI_MACHINE_LEARNING, INTERACTION_AUGMENTED_REALITY"),
fieldWithPath("content[].awardStatus").type(JsonFieldType.STRING).description("수상 여부: NONE, FIRST, SECOND, THIRD, FOURTH, FIFTH"),
fieldWithPath("content[].techStacks").type(JsonFieldType.ARRAY).description("기술 스택"),
fieldWithPath("content[].year").type(JsonFieldType.NUMBER).description("프로젝트 년도"),
fieldWithPath("content[].likeCount").type(JsonFieldType.NUMBER).description("좋아요 수"),
fieldWithPath("content[].like").type(JsonFieldType.BOOLEAN).description("좋아요 여부"),
fieldWithPath("content[].bookMark").type(JsonFieldType.BOOLEAN).description("북마크 여부"),
Expand Down

0 comments on commit 2829b1f

Please sign in to comment.