check params

This commit is contained in:
2026-08-06 22:20:28 +08:00
parent 9d5b507634
commit e7e3aa12c3
15 changed files with 1465 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package svc
import (
"admin/internal/config"
"gorm.io/gorm"
)
type ServiceContext struct {
Config config.Config
DB *gorm.DB
Prefix string
}
func NewServiceContext(c config.Config, db *gorm.DB) *ServiceContext {
return &ServiceContext{
Config: c,
DB: db,
Prefix: c.Mysql.Prefix,
}
}