From db51fe659bac3a876deaa498b41f634cdcbefa17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=ED=98=84=EC=A1=B0?= Date: Fri, 13 Sep 2024 08:20:09 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20=EC=B6=94=EA=B0=80=EB=90=9C=20api?= =?UTF-8?q?=EC=97=90=20=EB=A7=9E=EC=B6=B0=20=ED=83=80=EC=9E=85=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/types/index.ts | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/frontend/src/types/index.ts b/frontend/src/types/index.ts index f83563b..a272b39 100644 --- a/frontend/src/types/index.ts +++ b/frontend/src/types/index.ts @@ -143,3 +143,37 @@ export interface BaseResponse { export interface RefreshTokenResponseDTO { accessToken: string; } + +export interface CommentRequestDTO { + content: string; + positionX: number; + positionY: number; +} + +export interface CommentResponseDTO { + id: number; + memberId: number; + memberNickname: string; + memberProfileImage: string; + positionX: number; + positionY: number; + content: string; + createTime: string; // 작성 일자 (ISO 8601 형식) +} + +export interface ProjectMemberRequestDTO { + memberId: number; + privilegeType: 'ADMIN' | 'MANAGER' | 'EDITOR' | 'VIEWER'; +} + +export interface LabelingRequestDTO { + memberId: number; + projectId: number; + imageId: number; +} + +export interface AutoLabelingResponseDTO { + imageId: number; + imageUrl: string; + data: string; +}