fusenapi/home-user-auth/internal/svc/servicecontext.go

21 lines
388 B
Go
Raw Normal View History

2023-05-31 10:33:02 +00:00
package svc
import (
"fusenapi/home-user-auth/internal/config"
"fusenapi/model"
2023-05-31 10:33:02 +00:00
"github.com/zeromicro/go-zero/core/stores/sqlx"
2023-05-31 10:33:02 +00:00
)
type ServiceContext struct {
Config config.Config
FsFontModel model.FsFontModel
2023-05-31 10:33:02 +00:00
}
func NewServiceContext(c config.Config) *ServiceContext {
return &ServiceContext{
Config: c,
FsFontModel: model.NewFsFontModel(sqlx.NewMysql("")),
2023-05-31 10:33:02 +00:00
}
}