package svc import ( "github.com/tal-tech/go-zero/zrpc" "app.yhyue.com/moapp/jyPoints/api/internal/config" "app.yhyue.com/moapp/jyPoints/rpc/integralclient" ) type ServiceContext struct { Config config.Config Integral integralclient.Integral } func NewServiceContext(c config.Config) *ServiceContext { return &ServiceContext{ Config: c, Integral: integralclient.NewIntegral(zrpc.MustNewClient(c.Integral)), } }