package svc import ( "app.yhyue.com/moapp/jyPoints/api/internal/config" "app.yhyue.com/moapp/jyPoints/rpc/integralclient" "github.com/zeromicro/go-zero/zrpc" ) 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)), } }