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

Method GetMoreCommentsReply

internal/repository/comment.go:63–69  ·  view source on GitHub ↗

GetMoreCommentsReply 获取更多评论回复

(ctx context.Context, rootId, maxId, limit int64)

Source from the content-addressed store, hash-verified

61
62// GetMoreCommentsReply 获取更多评论回复
63func (c *commentRepository) GetMoreCommentsReply(ctx context.Context, rootId, maxId, limit int64) ([]domain.Comment, error) {
64 comments, err := c.dao.GetMoreCommentsReply(ctx, rootId, maxId, limit)
65 if err != nil {
66 return nil, fmt.Errorf("获取评论回复失败: %w", err)
67 }
68 return c.toDomainSliceComments(comments), nil
69}
70
71// GetTopCommentsReply 加载顶级评论
72func (c *commentRepository) GetTopCommentsReply(ctx context.Context, postId int64) (domain.Comment, error) {

Callers

nothing calls this directly

Calls 2

toDomainSliceCommentsMethod · 0.95
GetMoreCommentsReplyMethod · 0.65

Tested by

no test coverage detected