package svc import ( "lone-services/pkg/utils" "lone-services/services/chore/internal/config" "github.com/zeromicro/go-zero/core/logx" ) type ServiceContext struct { Config config.Config ProductSvcName string } func NewServiceContext(c config.Config) *ServiceContext { productSvc := utils.GetConfigString("services.product") if productSvc == utils.StringEmpty { logx.Error("config services.product empty") } return &ServiceContext{ Config: c, ProductSvcName: productSvc, } }