This commit is contained in:
2025-12-18 09:54:29 +08:00
parent 1eef314e98
commit 650ada9cc6
25 changed files with 3929 additions and 43 deletions

View File

@@ -8,24 +8,27 @@ var _db *gorm.DB
// exported CamelCase Services
var (
Tenant *tenant
Test *test
User *user
Content *content
Tenant *tenant
Test *test
User *user
)
// @provider(model)
type services struct {
db *gorm.DB
// define Services
tenant *tenant
test *test
user *user
content *content
tenant *tenant
test *test
user *user
}
func (svc *services) Prepare() error {
_db = svc.db
// set exported Services here
Content = svc.content
Tenant = svc.tenant
Test = svc.test
User = svc.user