go-common/app/admin/main/up-rating/dao/global/resource.go

21 lines
321 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
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
}