Changed: DB Params
This commit is contained in:
3
handlers/go.mod
Normal file
3
handlers/go.mod
Normal file
@@ -0,0 +1,3 @@
|
||||
module handlers
|
||||
|
||||
go 1.24.1
|
11
handlers/handler.go
Normal file
11
handlers/handler.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package handlers
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type handler struct {
|
||||
DB *gorm.DB
|
||||
}
|
||||
|
||||
func New(db *gorm.DB) handler {
|
||||
return handler{db}
|
||||
}
|
Reference in New Issue
Block a user