From 931e6fbe7e97f20bc56026261070f9728d96a1fb Mon Sep 17 00:00:00 2001 From: suucong Date: Sun, 3 Dec 2023 21:08:40 +0900 Subject: [PATCH] feat: Add MemberResponseDto for MemberAPI (#9) --- .../domain/member/dto/MemberResponseDto.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Server/src/main/java/com/gdscswu_server/server/domain/member/dto/MemberResponseDto.java diff --git a/Server/src/main/java/com/gdscswu_server/server/domain/member/dto/MemberResponseDto.java b/Server/src/main/java/com/gdscswu_server/server/domain/member/dto/MemberResponseDto.java new file mode 100644 index 0000000..d5d1666 --- /dev/null +++ b/Server/src/main/java/com/gdscswu_server/server/domain/member/dto/MemberResponseDto.java @@ -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(); + } +}