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

Function NewCommentRepository

internal/repository/comment.go:31–36  ·  view source on GitHub ↗
(dao dao.CommentDAO, cache cache.CommentCache)

Source from the content-addressed store, hash-verified

29}
30
31func NewCommentRepository(dao dao.CommentDAO, cache cache.CommentCache) CommentRepository {
32 return &commentRepository{
33 dao: dao,
34 cache: cache,
35 }
36}
37
38// CreateComment 创建评论
39func (c *commentRepository) CreateComment(ctx context.Context, comment domain.Comment) (int64, error) {

Callers 1

InitWebServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected