12345678910111213141516171819 |
- package svc
- import (
- "bp.jydev.jianyu360.cn/BaseService/entManageApplication/api/internal/config"
- "bp.jydev.jianyu360.cn/BaseService/entManageApplication/rpc/entmanageapplication"
- "github.com/zeromicro/go-zero/zrpc"
- )
- type ServiceContext struct {
- Config config.Config
- EntManageApplicationRpc entmanageapplication.EntManageApplication
- }
- func NewServiceContext(c config.Config) *ServiceContext {
- return &ServiceContext{
- Config: c,
- EntManageApplicationRpc: entmanageapplication.NewEntManageApplication(zrpc.MustNewClient(c.EntManageApplicationRpc)),
- }
- }
|