File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/main/java/com/moneymong/domain/invitationcode Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1111@ AllArgsConstructor
1212public class CertifyInvitationCodeResponse {
1313 private boolean certified ;
14+ private long agencyId ;
1415
15- public static CertifyInvitationCodeResponse from (boolean certified ) {
16+ public static CertifyInvitationCodeResponse from (boolean certified , long agencyId ) {
1617 return CertifyInvitationCodeResponse .builder ()
1718 .certified (certified )
19+ .agencyId (agencyId )
1820 .build ();
1921 }
2022}
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public CertifyInvitationCodeResponse certify(CertifyInvitationCodeRequest reques
7878 agencyUserService .join (agencyId , userId );
7979 }
8080
81- return CertifyInvitationCodeResponse .from (certified );
81+ return CertifyInvitationCodeResponse .from (certified , agencyId );
8282 }
8383
8484 @ Transactional
@@ -90,7 +90,7 @@ public CertifyInvitationCodeResponse certifyV2(CertifyInvitationCodeRequest requ
9090
9191 agencyUserService .join (invitationCode .getAgencyId (), userId );
9292
93- return CertifyInvitationCodeResponse .from (true );
93+ return CertifyInvitationCodeResponse .from (true , invitationCode . getAgencyId () );
9494 }
9595
9696 private InvitationCodeCertification getCertification (Long userId , Long agencyId ) {
You can’t perform that action at this time.
0 commit comments