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

Method CreateComment

internal/repository/dao/comment.go:40–40  ·  view source on GitHub ↗
(ctx context.Context, comment Comment)

Source from the content-addressed store, hash-verified

38// CommentDAO 评论数据访问接口定义
39type CommentDAO interface {
40 CreateComment(ctx context.Context, comment Comment) (int64, error)
41 DeleteCommentById(ctx context.Context, commentId int64) error
42 FindCommentsByPostId(ctx context.Context, postId int64, minId, limit int64) ([]Comment, error)
43 GetMoreCommentsReply(ctx context.Context, rootId, maxId, limit int64) ([]Comment, error)

Callers

nothing calls this directly

Implementers 1

commentDAOinternal/repository/dao/comment.go

Calls

no outgoing calls

Tested by

no test coverage detected