-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Comment: comment api type 설정 (1차 작업)"
This reverts commit c906c6d.
- Loading branch information
1 parent
c906c6d
commit 9d513cb
Showing
1 changed file
with
8 additions
and
41 deletions.
There are no files selected for viewing
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,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<GetCommentResponse>; | ||
delete(request: DeleteCommentRequest): Promise<DeleteCommentResponse>; | ||
getAllComment(): Promise<AllGetCommentResponse>; | ||
getComment(): Promise<CommentResponse>; | ||
} |