// Code scaffolded by goctl. Safe to edit. // goctl 1.9.2 package svc import ( "github.com/zero-ppanel/zero-ppanel/apps/api/internal/config" "github.com/zero-ppanel/zero-ppanel/apps/rpc/core/coreclient" "github.com/zeromicro/go-zero/zrpc" ) type ServiceContext struct { Config config.Config CoreRpc coreClient.Core } func NewServiceContext(c config.Config) *ServiceContext { return &ServiceContext{ Config: c, CoreRpc: coreClient.NewCore(zrpc.MustNewClient(c.CoreRpc)), } }