mysql 跑通
This commit is contained in:
@@ -15,6 +15,6 @@ type ServiceContext struct {
|
||||
func NewServiceContext(c config.Config) *ServiceContext {
|
||||
return &ServiceContext{
|
||||
Config: c,
|
||||
FsFontModel: model.NewFsFontModel(sqlx.NewMysql("")),
|
||||
FsFontModel: model.NewFsFontModel(sqlx.NewMysql(c.DataSource)),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user