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