From 23f220af43e54ec67d4292732a709d8dc0bd12dd Mon Sep 17 00:00:00 2001 From: Dan Ko Date: Tue, 1 Oct 2024 02:01:59 -0400 Subject: [PATCH] remove unnecessary interface --- .../ideation/application/dtos/addIdeationUsecaseDto.ts | 8 -------- src/modules/ideation/ports/primary/addIdeationPort.ts | 6 ------ src/modules/ideation/ports/primary/ideationClientPort.ts | 4 ++-- 3 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 src/modules/ideation/application/dtos/addIdeationUsecaseDto.ts delete mode 100644 src/modules/ideation/ports/primary/addIdeationPort.ts diff --git a/src/modules/ideation/application/dtos/addIdeationUsecaseDto.ts b/src/modules/ideation/application/dtos/addIdeationUsecaseDto.ts deleted file mode 100644 index d747f3874..000000000 --- a/src/modules/ideation/application/dtos/addIdeationUsecaseDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { - IdeationBodyDto, - IdeationRequestDto, -} from "@/modules/ideation/application/dtos/common.dto"; - -export interface AddIdeationUsecaseDto - extends Pick, - IdeationBodyDto {} diff --git a/src/modules/ideation/ports/primary/addIdeationPort.ts b/src/modules/ideation/ports/primary/addIdeationPort.ts deleted file mode 100644 index 70d4d73f4..000000000 --- a/src/modules/ideation/ports/primary/addIdeationPort.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { AddIdeationRequestDto } from "@/modules/ideation/application/dtos/request.dto"; -import type { AddIdeationResponseDto } from "@/modules/ideation/application/dtos/response.dto"; - -export interface AddIdeationPort { - execute(props: AddIdeationRequestDto): Promise; -} diff --git a/src/modules/ideation/ports/primary/ideationClientPort.ts b/src/modules/ideation/ports/primary/ideationClientPort.ts index 68260bbd4..9efd9db1a 100644 --- a/src/modules/ideation/ports/primary/ideationClientPort.ts +++ b/src/modules/ideation/ports/primary/ideationClientPort.ts @@ -1,5 +1,5 @@ -import { type AddIdeationUsecaseDto } from "@/modules/ideation/application/dtos/addIdeationUsecaseDto"; import { type AddIdeationResponseDto } from "@/modules/ideation/application/dtos/response.dto"; +import { type AddIdeationRequestDto } from "@/modules/ideation/application/dtos/request.dto"; export interface IdeationClientPort { addIdeation({ @@ -7,5 +7,5 @@ export interface IdeationClientPort { title, description, vision, - }: AddIdeationUsecaseDto): Promise; + }: AddIdeationRequestDto): Promise; }