Skip to content

Commit 35e979a

Browse files
authored
refactor: isConfirmed 대신 verifyStatus를 응답하도록 (#463)
1 parent 9e770d1 commit 35e979a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/example/solidconnection/mentor/dto/MentoringForMentorResponse.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.example.solidconnection.mentor.dto;
22

3+
import com.example.solidconnection.common.VerifyStatus;
34
import com.example.solidconnection.mentor.domain.Mentoring;
45
import com.example.solidconnection.siteuser.domain.SiteUser;
56
import java.time.ZonedDateTime;
@@ -9,7 +10,7 @@ public record MentoringForMentorResponse(
910
String profileImageUrl,
1011
String nickname,
1112
boolean isChecked,
12-
boolean isConfirmed,
13+
VerifyStatus verifyStatus,
1314
ZonedDateTime createdAt
1415
) {
1516

@@ -19,7 +20,7 @@ public static MentoringForMentorResponse of(Mentoring mentoring, SiteUser partne
1920
partner.getProfileImageUrl(),
2021
partner.getNickname(),
2122
mentoring.getCheckedAtByMentor() != null,
22-
mentoring.getConfirmedAt() != null,
23+
mentoring.getVerifyStatus(),
2324
mentoring.getCreatedAt()
2425
);
2526
}

0 commit comments

Comments
 (0)