12345678910111213141516171819 |
- package svc
- import (
- "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXCore/api/internal/config"
- "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXCore/rpc/bxcore"
- "github.com/zeromicro/go-zero/zrpc"
- )
- type ServiceContext struct {
- Config config.Config
- BxCore bxcore.BxCore
- }
- func NewServiceContext(c config.Config) *ServiceContext {
- return &ServiceContext{
- Config: c,
- BxCore: bxcore.NewBxCore(zrpc.MustNewClient(c.Core)),
- }
- }
|