auto generate query & models

This commit is contained in:
yanghao05
2023-01-30 10:31:44 +08:00
parent 168e488629
commit c8091a5d7e
7 changed files with 540 additions and 12 deletions

View File

@@ -6,5 +6,4 @@ import (
_ "atom/providers/http"
_ "atom/providers/logger"
_ "atom/providers/micro"
_ "atom/providers/query"
)

View File

@@ -2,6 +2,7 @@ package query
import (
"atom/container"
"atom/database/query"
"log"
"gorm.io/gorm"
@@ -13,6 +14,6 @@ func init() {
}
}
func NewQuery(db *gorm.DB) *Query {
return Use(db)
func NewQuery(db *gorm.DB) *query.Query {
return query.Use(db)
}