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

Method GetMoreCommentReply

internal/api/comment.go:112–125  ·  view source on GitHub ↗

GetMoreCommentReply 获取更多评论回复处理器方法

(ctx *gin.Context, req req.GetMoreCommentReplyReq)

Source from the content-addressed store, hash-verified

110
111// GetMoreCommentReply 获取更多评论回复处理器方法
112func (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
127func (ch *CommentHandler) GetTopCommentReply(ctx *gin.Context, req req.GetTopCommentReplyReq) (Result, error) {
128 comments, err := ch.svc.GetTopCommentsReply(ctx, req.PostId)

Callers

nothing calls this directly

Calls 1

GetMoreCommentsReplyMethod · 0.65

Tested by

no test coverage detected