MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / GetTopCommentReply

Method GetTopCommentReply

internal/api/comment.go:127–140  ·  view source on GitHub ↗
(ctx *gin.Context, req req.GetTopCommentReplyReq)

Source from the content-addressed store, hash-verified

125}
126
127func (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}

Callers

nothing calls this directly

Calls 1

GetTopCommentsReplyMethod · 0.65

Tested by

no test coverage detected