mysql 跑通

This commit is contained in:
eson
2023-06-01 12:15:36 +08:00
parent 340c7966e0
commit e1e0e5ef21
4 changed files with 13 additions and 2 deletions

View File

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