CreateComment 创建评论
(ctx context.Context, comment domain.Comment)
| 37 | |
| 38 | // CreateComment 创建评论 |
| 39 | func (c *commentRepository) CreateComment(ctx context.Context, comment domain.Comment) (int64, error) { |
| 40 | return c.dao.CreateComment(ctx, c.toDAOComment(comment)) |
| 41 | } |
| 42 | |
| 43 | // FindCommentByCommentId 根据评论ID查找评论 |
| 44 | func (c *commentRepository) FindCommentByCommentId(ctx context.Context, commentId int64) (domain.Comment, error) { |
nothing calls this directly
no test coverage detected