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(); + } + +}