From f30996c5437609e95a01952cff4fa53aa03a89c1 Mon Sep 17 00:00:00 2001 From: YoungJun Park Date: Wed, 27 Jul 2022 02:36:15 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=94=20=ED=9A=8C=EC=9B=90=20=ED=83=88?= =?UTF-8?q?=ED=87=B4=20=EA=B8=B0=EB=8A=A5(in=20port)(#15)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/port/in/DeleteMemberCommand.java | 15 +++++++++++++++ .../application/port/in/DeleteMemberUseCase.java | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 api/src/main/java/hexagonal/api/member/application/port/in/DeleteMemberCommand.java create mode 100644 api/src/main/java/hexagonal/api/member/application/port/in/DeleteMemberUseCase.java diff --git a/api/src/main/java/hexagonal/api/member/application/port/in/DeleteMemberCommand.java b/api/src/main/java/hexagonal/api/member/application/port/in/DeleteMemberCommand.java new file mode 100644 index 0000000..2926797 --- /dev/null +++ b/api/src/main/java/hexagonal/api/member/application/port/in/DeleteMemberCommand.java @@ -0,0 +1,15 @@ +package hexagonal.api.member.application.port.in; + +import lombok.Getter; + +@Getter +public class DeleteMemberCommand { + + private final Long id; + + public DeleteMemberCommand(Long id) { + // 존재하는 ID 검사는 어디서 할까 + this.id = id; + } + +} diff --git a/api/src/main/java/hexagonal/api/member/application/port/in/DeleteMemberUseCase.java b/api/src/main/java/hexagonal/api/member/application/port/in/DeleteMemberUseCase.java new file mode 100644 index 0000000..c779c71 --- /dev/null +++ b/api/src/main/java/hexagonal/api/member/application/port/in/DeleteMemberUseCase.java @@ -0,0 +1,6 @@ +package hexagonal.api.member.application.port.in; + +public interface DeleteMemberUseCase { + + Boolean deleteMember(DeleteMemberCommand command); +}