-
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.
Merge branch 'develop' into feature/#152
- Loading branch information
Showing
85 changed files
with
1,915 additions
and
872 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
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
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
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,50 @@ | ||
export interface GetCommentRequest { | ||
id: string; | ||
//post | ||
export interface PostCommentRequest { | ||
sectionId: number; | ||
commentContent: string; | ||
} | ||
|
||
export interface GetCommentResponse { | ||
export interface PostCommentResponse { | ||
code: number; | ||
message: string; | ||
data: { | ||
id: number; | ||
content: string; | ||
}; | ||
data: PostCommentData; | ||
} | ||
|
||
//put | ||
export interface PutCommentRequest { | ||
export interface PostCommentData { | ||
id: number; | ||
userId: number; | ||
sectionId: number; | ||
commentContent: string; | ||
} | ||
|
||
//delete | ||
export interface DeleteCommentRequest { | ||
id: number; | ||
//put | ||
export interface PutCommentRequest { | ||
commentId: number; | ||
commentContent: string; | ||
} | ||
|
||
export interface DeleteCommentResponse { | ||
export interface PutCommentResponse { | ||
code: number; | ||
message: string; | ||
data: object; | ||
data: PutCommentData; | ||
} | ||
|
||
//GetAllComment | ||
export interface AllGetCommentResponse { | ||
code: number; | ||
message: string; | ||
data: CommentData[]; | ||
export interface PutCommentData { | ||
commentId: number; | ||
content: string; | ||
} | ||
|
||
export interface CommentData { | ||
id: number; | ||
comment: string; | ||
//delete | ||
export interface DeleteCommentRequest { | ||
commentId: number; | ||
} | ||
|
||
//Post | ||
export interface DeleteCommentResponse { | ||
code: number; | ||
} | ||
|
||
export interface CommentClient { | ||
getComment(request: GetCommentRequest): Promise<GetCommentResponse>; | ||
post(request: PostCommentRequest): Promise<PostCommentResponse>; | ||
delete(request: DeleteCommentRequest): Promise<DeleteCommentResponse>; | ||
getAllComment(): Promise<AllGetCommentResponse>; | ||
put(request: PutCommentRequest): Promise<PutCommentResponse>; | ||
} |
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
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
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
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
Oops, something went wrong.