Skip to content

Commit

Permalink
Merge pull request #138 from IT-Cotato/develop
Browse files Browse the repository at this point in the history
[Main] V2.2024.08.23.03
  • Loading branch information
Youthhing authored Aug 23, 2024
2 parents 1d8fc9f + 3e84a84 commit 5aa85c2
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
package org.cotato.csquiz.api.admin.dto;

import org.cotato.csquiz.domain.auth.enums.MemberPosition;
import org.cotato.csquiz.domain.auth.enums.MemberRole;
import org.cotato.csquiz.domain.auth.entity.Member;

public record MemberInfoResponse(
Long memberId,
String name,
String backFourNumber,
MemberRole role
MemberRole role,
MemberPosition position
) {
public static MemberInfoResponse from(Member member, String backFourNumber) {
return new MemberInfoResponse(
member.getId(),
member.getName(),
backFourNumber,
member.getRole()
member.getRole(),
member.getPosition()
);
}
}

0 comments on commit 5aa85c2

Please sign in to comment.