resource.go 321 B

1234567891011121314151617181920
  1. package global
  2. import (
  3. "go-common/app/admin/main/up-rating/conf"
  4. accrpc "go-common/app/service/main/account/rpc/client"
  5. )
  6. var (
  7. accRPC *accrpc.Service3
  8. )
  9. // Init resources
  10. func Init(c *conf.Config) {
  11. accRPC = accrpc.New3(c.RPCClient.Account)
  12. }
  13. // GetAccRPC .
  14. func GetAccRPC() *accrpc.Service3 {
  15. return accRPC
  16. }