Skip to content
/ core Public

Commit 2153077

Browse files
committed
fix: comment api
1 parent ec357e1 commit 2153077

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

apps/core/src/modules/comment/comment.controller.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,20 @@ export class CommentController {
331331
return this.replyCommentWithBody(params, body, isAuthenticated, ipLocation)
332332
}
333333

334+
@Post('/owner/reply/:id')
335+
@Auth()
336+
@HTTPDecorators.Idempotence({
337+
expired: 20,
338+
errorMessage: idempotenceMessage,
339+
})
340+
async ownerReplyByCid(
341+
@Param() params: MongoIdDto,
342+
@Body() body: EditCommentDto,
343+
@IpLocation() ipLocation: IpRecord,
344+
) {
345+
return this.replyCommentWithBody(params, body, true, ipLocation)
346+
}
347+
334348
@Patch('/:id')
335349
@Auth()
336350
async modifyCommentState(

0 commit comments

Comments
 (0)