Skip to content

Commit

Permalink
πŸ‘” νšŒμ›μ •λ³΄ λ³€κ²½ μš”μ²­ Command(#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jun108059 committed Jun 29, 2022
1 parent 810ea74 commit a008d89
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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();
}

}

0 comments on commit a008d89

Please sign in to comment.