Skip to content

Commit

Permalink
πŸ‘” νšŒμ› 정보 λ³€κ²½(in port)(#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jun108059 committed Jul 25, 2022
1 parent d168b94 commit 5e1237e
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
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) {
public UpdateMemberCommand(Long id, String name, 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();
}

}

0 comments on commit 5e1237e

Please sign in to comment.