Skip to content

Commit

Permalink
[FEATURE] 사용자 정보 API 스펙 변경 (#110)
Browse files Browse the repository at this point in the history
* delete: email 필드 삭제 (#106)

* feat: 사용자 정보 API 스펙 변경 (#106)
  • Loading branch information
hyunmin0317 authored Dec 10, 2024
1 parent ceb762e commit 8e3c4f3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ public record MemberInfoResponseDto(
String username,
String name,
String department,
String email
String deptCode,
boolean deptEditable
) {

public static MemberInfoResponseDto from(Member member) {
return MemberInfoResponseDto.builder()
.username(member.getUsername())
.name(member.getName())
.department(member.getDepartment().getName())
.email(member.getEmail())
.deptCode(member.getDepartment().getCode())
.deptEditable(member.getDepartment().isEditable())
.build();
}
}

0 comments on commit 8e3c4f3

Please sign in to comment.