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

Method CreateComment

internal/repository/comment.go:39–41  ·  view source on GitHub ↗

CreateComment 创建评论

(ctx context.Context, comment domain.Comment)

Source from the content-addressed store, hash-verified

37
38// CreateComment 创建评论
39func (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查找评论
44func (c *commentRepository) FindCommentByCommentId(ctx context.Context, commentId int64) (domain.Comment, error) {

Callers

nothing calls this directly

Calls 2

toDAOCommentMethod · 0.95
CreateCommentMethod · 0.65

Tested by

no test coverage detected