GetMoreCommentsReply 获取更多评论回复
(ctx context.Context, rootId, maxId, limit int64)
| 61 | |
| 62 | // GetMoreCommentsReply 获取更多评论回复 |
| 63 | func (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 加载顶级评论 |
| 72 | func (c *commentRepository) GetTopCommentsReply(ctx context.Context, postId int64) (domain.Comment, error) { |
nothing calls this directly
no test coverage detected