This commit is contained in:
yanghao05
2023-01-29 19:00:18 +08:00
parent 8ade8728e4
commit e07cf08d34
8 changed files with 243 additions and 22 deletions

18
providers/query/query.go Normal file
View File

@@ -0,0 +1,18 @@
package query
import (
"atom/container"
"log"
"gorm.io/gorm"
)
func init() {
if err := container.Container.Provide(NewQuery); err != nil {
log.Fatal(err)
}
}
func NewQuery(db *gorm.DB) *Query {
return Use(db)
}