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

Method UpdateComment

internal/repository/comment.go:53–55  ·  view source on GitHub ↗

UpdateComment 更新评论

(ctx context.Context, comment domain.Comment)

Source from the content-addressed store, hash-verified

51
52// UpdateComment 更新评论
53func (c *commentRepository) UpdateComment(ctx context.Context, comment domain.Comment) error {
54 return c.dao.UpdateComment(ctx, c.toDAOComment(comment))
55}
56
57// DeleteComment 删除评论
58func (c *commentRepository) DeleteComment(ctx context.Context, commentId int64) error {

Callers

nothing calls this directly

Calls 2

toDAOCommentMethod · 0.95
UpdateCommentMethod · 0.65

Tested by

no test coverage detected