go-common/app/admin/main/up-rating/dao/global/resource.go
2019-04-22 18:49:16 +08:00

21 lines
321 B
Go

package global
import (
"go-common/app/admin/main/up-rating/conf"
accrpc "go-common/app/service/main/account/rpc/client"
)
var (
accRPC *accrpc.Service3
)
// Init resources
func Init(c *conf.Config) {
accRPC = accrpc.New3(c.RPCClient.Account)
}
// GetAccRPC .
func GetAccRPC() *accrpc.Service3 {
return accRPC
}