mirror of
https://github.com/mentos1386/zdravko.git
synced 2024-11-22 15:53:45 +00:00
18 lines
370 B
Go
18 lines
370 B
Go
|
package handlers
|
||
|
|
||
|
import (
|
||
|
"code.tjo.space/mentos1386/zdravko/internal"
|
||
|
"code.tjo.space/mentos1386/zdravko/internal/models/query"
|
||
|
"gorm.io/gorm"
|
||
|
)
|
||
|
|
||
|
type BaseHandler struct {
|
||
|
db *gorm.DB
|
||
|
query *query.Query
|
||
|
config *internal.Config
|
||
|
}
|
||
|
|
||
|
func NewBaseHandler(db *gorm.DB, q *query.Query, config *internal.Config) *BaseHandler {
|
||
|
return &BaseHandler{db, q, config}
|
||
|
}
|