Skip to content

Commit e212bb9

Browse files
authored
feature/KD-67 : 졸업 대상자 조회 API 지도교수 추가 (#323)
* feature/KD-67 : 졸업 대상자 조회 API 지도교수 추가 * refactor/KD-67 : advise->advisorProfessor이름 변경
1 parent 3e966da commit e212bb9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

aics-admin/src/main/java/kgu/developers/admin/graduationUser/presentation/response/GraduationUserSummaryPageResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public record GraduationUserSummaryPageResponse<T>(
1717
+ "\"name\": \"홍길동\", "
1818
+ "\"graduationDate\": \"2028-08\", "
1919
+ "\"graduationType\": \"자격증\", "
20+
+ "\"advisorProfessor\": \"김교수\","
2021
+ "\"status\": {"
2122
+ "\"type\": \"CERTIFICATE\", "
2223
+ "\"submitted\": true, "
@@ -27,6 +28,7 @@ public record GraduationUserSummaryPageResponse<T>(
2728
+ "\"name\": \"김철수\", "
2829
+ "\"graduationDate\": \"2028-08\", "
2930
+ "\"graduationType\": \"논문\", "
31+
+ "\"advisorProfessor\": \"이순신\","
3032
+ "\"status\": {"
3133
+ "\"type\": \"THESIS\", "
3234
+ "\"midThesis\": {\"submitted\": true, \"approval\": true}, "

aics-admin/src/main/java/kgu/developers/admin/graduationUser/presentation/response/GraduationUserSummaryResponse.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public record GraduationUserSummaryResponse(
2727
@Schema(description = "졸업 유형", example = "자격증", requiredMode = REQUIRED)
2828
String graduationType,
2929

30+
@Schema(description = "지도교수", example = "김교수", requiredMode = REQUIRED)
31+
String advisorProfessor,
32+
3033
@Schema(
3134
description = "졸업 요건 제출 및 승인 상태 (자격증 또는 논문)",
3235
example = "{"
@@ -59,6 +62,7 @@ public static GraduationUserSummaryResponse of(
5962
.graduationDate(graduationUser.getGraduationDate().format(formatter))
6063
.graduationType(graduationUser.getGraduationType() != null ? graduationUser.getGraduationType().getDescription() : "미정")
6164
.status(status)
65+
.advisorProfessor(graduationUser.getAdvisorProfessor())
6266
.build();
6367
}
6468
}

0 commit comments

Comments
 (0)