init: 初始化项目
This commit is contained in:
11
internal/api/handler/handle.go
Normal file
11
internal/api/handler/handle.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package handler
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Handler struct {
|
||||
db *gorm.DB
|
||||
}
|
||||
|
||||
func New(db *gorm.DB) *Handler {
|
||||
return &Handler{db: db}
|
||||
}
|
||||
Reference in New Issue
Block a user