Skip to content

Commit

Permalink
#192 fix: 상담 완료 횟수 response dto에 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
aeyongdodam committed Jun 19, 2024
1 parent 9b403c6 commit 5b6da17
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public class CounselorGetListResponse extends CounselorGetBaseResponse {
@Schema(description = "현재 접속 여부", example = "true")
private final Boolean isRealtime;

@Schema(description = "상담 완료 횟수")
private final Long totalConsult;

private CounselorGetListResponse(Counselor counselor, Boolean isWishList, Boolean isRealtime) {
super(counselor);
this.counselorId = counselor.getCounselorId();
Expand All @@ -34,6 +37,7 @@ private CounselorGetListResponse(Counselor counselor, Boolean isWishList, Boolea
this.ratingAverage = counselor.getRatingAverage();
this.isWishList = isWishList;
this.isRealtime = isRealtime;
this.totalConsult = counselor.getTotalConsult();
}

public static CounselorGetListResponse of(Counselor counselor, Boolean isWishList, Boolean isRealtime) {
Expand Down

0 comments on commit 5b6da17

Please sign in to comment.