(ctx *gin.Context, req req.GetTopCommentReplyReq)
| 125 | } |
| 126 | |
| 127 | func (ch *CommentHandler) GetTopCommentReply(ctx *gin.Context, req req.GetTopCommentReplyReq) (Result, error) { |
| 128 | comments, err := ch.svc.GetTopCommentsReply(ctx, req.PostId) |
| 129 | if err != nil { |
| 130 | return Result{ |
| 131 | Code: GetTopCommentReplyErrorCode, |
| 132 | Msg: GetTopCommentReplyErrorMsg, |
| 133 | }, err |
| 134 | } |
| 135 | return Result{ |
| 136 | Code: RequestsOK, |
| 137 | Msg: GetTopCommentReplySuccessMsg, |
| 138 | Data: comments, |
| 139 | }, nil |
| 140 | } |
nothing calls this directly
no test coverage detected