| 19 | } |
| 20 | |
| 21 | type CommentService interface { |
| 22 | CreateComment(ctx context.Context, comment domain.Comment) error |
| 23 | DeleteComment(ctx context.Context, commentId int64) error |
| 24 | ListComments(ctx context.Context, postId, minID, limit int64) ([]domain.Comment, error) |
| 25 | GetMoreCommentsReply(ctx context.Context, rootId, maxId, limit int64) ([]domain.Comment, error) |
| 26 | GetTopCommentsReply(ctx context.Context, postId int64) (domain.Comment, error) |
| 27 | } |
| 28 | |
| 29 | func NewCommentService(repo repository.CommentRepository, c check.Producer) CommentService { |
| 30 | return &commentService{ |
no outgoing calls
no test coverage detected