File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/main/java/dmu/dasom/api/domain/applicant/entity Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 11package dmu .dasom .api .domain .applicant .entity ;
22
3+ import dmu .dasom .api .domain .applicant .dto .ApplicantResponseDto ;
34import dmu .dasom .api .domain .applicant .enums .ApplicantStatus ;
45import jakarta .persistence .*;
56import jakarta .validation .constraints .*;
@@ -73,4 +74,18 @@ public void updateStatus(final ApplicantStatus status) {
7374 this .status = status ;
7475 }
7576
77+ public ApplicantResponseDto toApplicantResponse () {
78+ return ApplicantResponseDto .builder ()
79+ .id (this .id )
80+ .studentNo (this .studentNo )
81+ .contact (this .contact )
82+ .email (this .email )
83+ .grade (this .grade )
84+ .reasonForApply (this .reasonForApply )
85+ .activityWish (this .activityWish )
86+ .status (this .status )
87+ .createdAt (this .createdAt )
88+ .build ();
89+ }
90+
7691}
You can’t perform that action at this time.
0 commit comments