Skip to content

Commit

Permalink
fix: response DTO api 명세에 맞게 이름 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SHEOMM committed Feb 22, 2024
1 parent 82119ae commit 1346763
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public List<ClassAttendees> getClassAttendeesIfExistsOrEmpty(Long courseId){
.id(classAttendancesInfo.getattendeeId())
.name(classAttendancesInfo.getName())
.attendance(classAttendancesInfo.getAttendance())
.absenece(classAttendancesInfo.getAbsence())
.absence(classAttendancesInfo.getAbsence())
.build()
).toList();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ public class ClassAttendees {

private int attendance;

private int absenece;
private int absence;

@Builder
public ClassAttendees(Long id, String name, int attendance, int absenece) {
public ClassAttendees(Long id, String name, int attendance, int absence) {
this.id = id;
this.name = name;
this.attendance = attendance;
this.absenece = absenece;
this.absence = absence;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ public List<SessionAttendanceInfo> getRecentFiveSessions(Long courseId){
.orElseThrow(SessionIdNotFoundException::new);

list.add(SessionAttendanceInfo.builder()
.attendees(sessionWithAttendance.getattendee())
.absentees(sessionWithAttendance.getabsentee())
.attendee(sessionWithAttendance.getattendee())
.absentee(sessionWithAttendance.getabsentee())
.date(sessionWithAttendance.getdate())
.name(sessionWithAttendance.getname())
.id(sessionWithAttendance.getid())
Expand All @@ -136,8 +136,8 @@ public List<SessionAttendanceInfo> getAllSessions(Long courseId){
.id(allSession.getid())
.name(allSession.getname())
.date(allSession.getdate())
.attendees(allSession.getattendee())
.absentees(allSession.getabsentee())
.attendee(allSession.getattendee())
.absentee(allSession.getabsentee())
.build()).toList();
}

Expand All @@ -152,8 +152,8 @@ public SessionAttendanceInfo getSessionInfo(Long sessionId){
.id(sessionWithAttendance.getid())
.name(sessionWithAttendance.getname())
.date(sessionWithAttendance.getdate())
.attendees(sessionWithAttendance.getattendee())
.absentees(sessionWithAttendance.getabsentee())
.attendee(sessionWithAttendance.getattendee())
.absentee(sessionWithAttendance.getabsentee())
.build();

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ public class SessionAttendanceInfo {

String name;

int attendees;
int attendee;

int absentees;
int absentee;

Long id;

@Builder
public SessionAttendanceInfo(LocalDateTime date, String name, int attendees, int absentees, Long id) {
public SessionAttendanceInfo(LocalDateTime date, String name, int attendee, int absentee, Long id) {
this.date = date;
this.name = name;
this.attendees = attendees;
this.absentees = absentees;
this.attendee = attendee;
this.absentee = absentee;
this.id = id;
}

Expand Down

0 comments on commit 1346763

Please sign in to comment.