Skip to content

Commit

Permalink
feat: Add MemberResponseDto for MemberAPI (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
suucong committed Dec 3, 2023
1 parent 8250e83 commit 931e6fb
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.gdscswu_server.server.domain.member.dto;

import com.gdscswu_server.server.domain.member.domain.Member;
import lombok.Getter;

@Getter
public class MemberResponseDto {
private String name;
private String major;
private Integer admissionYear;
private String profileImagePath;
private String introduction;
private String email;

public MemberResponseDto(Member member) {
this.name = member.getName();
this.major = member.getMajor();
this.admissionYear = member.getAdmissionYear();
this.profileImagePath = member.getProfileImagePath();
this.introduction = member.getIntroduction();
this.email = member.getEmail();
}
}

0 comments on commit 931e6fb

Please sign in to comment.