init
This commit is contained in:
13
network/http/handler/handler.go
Normal file
13
network/http/handler/handler.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package handler
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Handler struct {
|
||||
DB *gorm.DB
|
||||
}
|
||||
|
||||
func NewHandler(db *gorm.DB) *Handler {
|
||||
return &Handler{
|
||||
DB: db,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user