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

Function NewCommentHandler

internal/api/comment.go:19–23  ·  view source on GitHub ↗

NewCommentHandler 创建新的评论处理器

(svc service.CommentService)

Source from the content-addressed store, hash-verified

17
18// NewCommentHandler 创建新的评论处理器
19func NewCommentHandler(svc service.CommentService) *CommentHandler {
20 return &CommentHandler{
21 svc: svc,
22 }
23}
24
25// RegisterRoutes 注册路由
26func (ch *CommentHandler) RegisterRoutes(server *gin.Engine) {

Callers 1

InitWebServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected