GetMoreCommentReply 获取更多评论回复处理器方法
(ctx *gin.Context, req req.GetMoreCommentReplyReq)
| 110 | |
| 111 | // GetMoreCommentReply 获取更多评论回复处理器方法 |
| 112 | func (ch *CommentHandler) GetMoreCommentReply(ctx *gin.Context, req req.GetMoreCommentReplyReq) (Result, error) { |
| 113 | comments, err := ch.svc.GetMoreCommentsReply(ctx, req.RootId, req.MaxId, req.Limit) |
| 114 | if err != nil { |
| 115 | return Result{ |
| 116 | Code: GetMoreCommentReplyErrorCode, |
| 117 | Msg: GetMoreCommentReplyErrorMsg, |
| 118 | }, err |
| 119 | } |
| 120 | return Result{ |
| 121 | Code: RequestsOK, |
| 122 | Msg: GetMoreCommentReplySuccessMsg, |
| 123 | Data: comments, |
| 124 | }, nil |
| 125 | } |
| 126 | |
| 127 | func (ch *CommentHandler) GetTopCommentReply(ctx *gin.Context, req req.GetTopCommentReplyReq) (Result, error) { |
| 128 | comments, err := ch.svc.GetTopCommentsReply(ctx, req.PostId) |
nothing calls this directly
no test coverage detected