package svc import ( "git.cialloo.com/CiallooWeb/Authenticator/app/internal/config" "github.com/zeromicro/go-zero/core/stores/redis" ) type ServiceContext struct { Config config.Config Redis *redis.Redis } func NewServiceContext(c config.Config) *ServiceContext { return &ServiceContext{ Config: c, Redis: redis.MustNewRedis(c.Redis), } }