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

Interface CommentRepository

internal/repository/comment.go:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21type CommentRepository interface {
22 CreateComment(ctx context.Context, comment domain.Comment) (int64, 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 FindCommentByCommentId(ctx context.Context, commentId int64) (domain.Comment, error)
28 UpdateComment(ctx context.Context, comment domain.Comment) error
29}
30
31func NewCommentRepository(dao dao.CommentDAO, cache cache.CommentCache) CommentRepository {
32 return &commentRepository{

Callers 4

CreateCommentMethod · 0.65
GetMoreCommentsReplyMethod · 0.65
UpdateCommentMethod · 0.65

Implementers 1

commentRepositoryinternal/repository/comment.go

Calls

no outgoing calls

Tested by

no test coverage detected