From a008d894d4ea9f33958d5de36b5f79716962d661 Mon Sep 17 00:00:00 2001 From: YoungJun Park Date: Wed, 29 Jun 2022 23:49:29 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=94=20=ED=9A=8C=EC=9B=90=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=20=EB=B3=80=EA=B2=BD=20=EC=9A=94=EC=B2=AD=20Command(#?= =?UTF-8?q?3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../port/in/UpdateMemberCommand.java | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 api/src/main/java/hexagonal/api/member/application/port/in/UpdateMemberCommand.java diff --git a/api/src/main/java/hexagonal/api/member/application/port/in/UpdateMemberCommand.java b/api/src/main/java/hexagonal/api/member/application/port/in/UpdateMemberCommand.java new file mode 100644 index 0000000..bf0890b --- /dev/null +++ b/api/src/main/java/hexagonal/api/member/application/port/in/UpdateMemberCommand.java @@ -0,0 +1,30 @@ +package hexagonal.api.member.application.port.in; + +import hexagonal.core.domain.jpa.MemberJpaEntity; +import lombok.Getter; + +@Getter +public class UpdateMemberCommand { + + private final Long id; + private final String name; + private final String email; + private final String memberType; + + public UpdateMemberCommand(Long id, String name, String email, String type) { + this.id = id; + this.name = name; + this.email = email; + this.memberType = type; + } + + public MemberJpaEntity toJpaEntity() { + return MemberJpaEntity.builder() + .id(id) + .name(name) + .email(email) + .type(memberType) + .build(); + } + +}