// Code scaffolded by goctl. Safe to edit. // goctl 1.9.2 package svc import ( "juwan-backend/app/community/api/internal/config" "juwan-backend/app/community/rpc/communityservice" "juwan-backend/app/users/rpc/usercenter" "github.com/zeromicro/go-zero/zrpc" ) type ServiceContext struct { Config config.Config CommunityRpc communityservice.CommunityService UserRpc usercenter.Usercenter } func NewServiceContext(c config.Config) *ServiceContext { return &ServiceContext{ Config: c, CommunityRpc: communityservice.NewCommunityService(zrpc.MustNewClient(c.CommunityRpcConf)), UserRpc: usercenter.NewUsercenter(zrpc.MustNewClient(c.UsercenterRpcConf)), } }