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, } }