-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π νμ μ 보 λ³κ²½(in port)(#14)
- Loading branch information
Showing
1 changed file
with
1 addition
and
13 deletions.
There are no files selected for viewing
14 changes: 1 addition & 13 deletions
14
api/src/main/java/hexagonal/api/member/application/port/in/UpdateMemberCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
|
||
} |