Skip to content

Commit 62f718d

Browse files
committed
feat(api): add replyToCommentId to add comment
1 parent 2d9b8a0 commit 62f718d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/api/comments.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const add = <T = Comments.AddResponse>(
2020
pictureKeys: option.pictureKeys ?? [],
2121
targetId,
2222
targetType,
23+
replyToCommentId: option.replyToCommentId,
2324
},
2425
})
2526
)

src/types/options.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ export interface AddCommentOption {
7373
* @default `[]`
7474
*/
7575
pictureKeys?: string[]
76+
/**
77+
* @description 回复的评论 ID
78+
*/
79+
replyToCommentId?: string
7680
}
7781

7882
export interface ListCommentMoreKey {

0 commit comments

Comments
 (0)