diff --git a/src/api/@types/Comment.ts b/src/api/@types/Comment.ts index 5e12045..2e45659 100644 --- a/src/api/@types/Comment.ts +++ b/src/api/@types/Comment.ts @@ -1,48 +1,15 @@ -export interface GetCommentRequest { - id: string; -} - -export interface GetCommentResponse { - code: number; - message: string; - data: { - id: number; - content: string; - }; -} +// 임시 API -//put -export interface PutCommentRequest { - id: number; -} - -//delete -export interface DeleteCommentRequest { - id: number; -} - -export interface DeleteCommentResponse { - code: number; - message: string; - data: object; -} - -//GetAllComment -export interface AllGetCommentResponse { - code: number; - message: string; - data: CommentData[]; +export interface CommentRequest { + id: string; } -export interface CommentData { - id: number; - comment: string; +export interface CommentResponse { + id: string; + name: string; + text: string; } -//Post - export interface CommentClient { - getComment(request: GetCommentRequest): Promise; - delete(request: DeleteCommentRequest): Promise; - getAllComment(): Promise; + getComment(): Promise; }