package svc import ( "SocialPlatform.messageCenter/rpc/messagecenterclient" "api/internal/config" "github.com/zeromicro/go-zero/zrpc" ) type ServiceContext struct { Config config.Config MessageRpc messagecenterclient.MessageCente } func NewServiceContext(c config.Config) *ServiceContext { return &ServiceContext{ Config: c, :jyorderclient.NewJyOrder(zrpc.MustNewClient(c.JyOrder)), } }