From 4224f60c5212634823c932357fdf6201eba905e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=EC=A7=84=ED=83=9D?= <87135698+jjt4515@users.noreply.github.com> Date: Tue, 12 Nov 2024 15:58:14 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20MemberProfileResponse=20=EC=A4=91?= =?UTF-8?q?=EB=B3=B5=20=EC=A0=9C=EA=B1=B0=20#82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/response/MemberProfileResponse.java | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 src/main/java/poomasi/domain/member/dto/response/MemberProfileResponse.java diff --git a/src/main/java/poomasi/domain/member/dto/response/MemberProfileResponse.java b/src/main/java/poomasi/domain/member/dto/response/MemberProfileResponse.java deleted file mode 100644 index 9a36d9e7..00000000 --- a/src/main/java/poomasi/domain/member/dto/response/MemberProfileResponse.java +++ /dev/null @@ -1,29 +0,0 @@ -package poomasi.domain.member.dto.response; - -import poomasi.domain.member.entity.MemberProfile; - -import java.time.LocalDateTime; - -public record MemberProfileResponse( - String name, - String phoneNumber, - String address, - String addressDetail, - Long coordinateX, - Long coordinateY, - boolean isBanned, - LocalDateTime createdAt -) { - public static MemberProfileResponse fromEntity(MemberProfile profile) { - return new MemberProfileResponse( - profile.getName(), - profile.getPhoneNumber(), - profile.getAddress(), - profile.getAddressDetail(), - profile.getCoordinateX(), - profile.getCoordinateY(), - profile.isBanned(), - profile.getCreatedAt() - ); - } -} \ No newline at end of file