qudoco-be/app/module/article_comments/controller/controller.go

17 lines
391 B
Go

package controller
import (
"github.com/rs/zerolog"
"web-qudo-be/app/module/article_comments/service"
)
type Controller struct {
ArticleComments ArticleCommentsController
}
func NewController(ArticleCommentsService service.ArticleCommentsService, log zerolog.Logger) *Controller {
return &Controller{
ArticleComments: NewArticleCommentsController(ArticleCommentsService, log),
}
}