Skip to content

Commit

Permalink
feat: 승인 가능 멤버 조회 dto 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook02 committed Feb 13, 2024
1 parent a562c1d commit e399e7b
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.gdschongik.gdsc.domain.member.dto.response;

import com.gdschongik.gdsc.domain.member.domain.Member;

public record MemberGrantableFindAllResponse(
Long memberId,
String studentId,
String name,
String phone,
String department,
String email,
String discordUsername,
String nickname) {
public static MemberGrantableFindAllResponse of(Member member) {
return new MemberGrantableFindAllResponse(
member.getId(),
member.getStudentId(),
member.getName(),
member.getPhone(),
member.getDepartment(),
member.getEmail(),
member.getDiscordUsername(),
member.getNickname());
}
}

0 comments on commit e399e7b

Please sign in to comment.