Files
kontor/kontor-gin/internal/handlers/bookshelf.go
T
tpeetz d9007ba0e4
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
add missing models
2026-10-04 01:56:25 +02:00

27 lines
810 B
Go

package handlers
import (
"gorm.io/gorm"
)
type BookshelfHandler struct {
ArticleHandler *ArticleHandler
BookshelfPublisherHandler *BookshelfPublisherHandler
BookHandler *BookHandler
AuthorHandler *AuthorHandler
ArticleAuthorHandler *ArticleAuthorHandler
BookAuthorHandler *BookAuthorHandler
}
func NewBookshelfHandler(db *gorm.DB) *BookshelfHandler {
bookshelfHandler := &BookshelfHandler{
ArticleHandler: NewArticleHandler(db),
BookshelfPublisherHandler: NewBookshelfPublisherHandler(db),
BookHandler: NewBookHandler(db),
AuthorHandler: NewAuthorHandler(db),
ArticleAuthorHandler: NewArticleAuthorHandler(db),
BookAuthorHandler: NewBookAuthorHandler(db),
}
return bookshelfHandler
}