package jytuil import ( "app.yhyue.com/moapp/jypkg/compatible" "app.yhyue.com/moapp/jypkg/middleground" "app.yhyue.com/moapp/jypkg/public" "context" "github.com/gogf/gf/v2/frame/g" ) var ( Middleground *middleground.Middleground Compatible = compatible.NewCompatible(MG.DB(), public.BaseMysql, public.Mysql, Middleground) ) func init() { var ctx = context.Background() Middleground = middleground.NewMiddleground(g.Cfg().MustGet(ctx, "etcd.hosts").Strings()). RegUserCenter(g.Cfg().MustGet(ctx, "userCenterKey").String()). RegPowerCheckCenter(g.Cfg().MustGet(ctx, "powerCheckCenterKey").String()). RegEntManageApplication(g.Cfg().MustGet(ctx, "entManageApplication").String()). RegPublicservice(g.Cfg().MustGet(ctx, "publicserviceKey").String()) }