Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package dao
import (
"go-common/app/job/live/xlottery/internal/conf"
rcApi "go-common/app/service/live/rc/api/liverpc"
"go-common/library/net/rpc/liverpc"
)
// RcApi liverpc reward-service api
var RcApi *rcApi.Client
// InitAPI init all service APIs
func InitAPI() {
RcApi = rcApi.New(getConf("rc"))
}
func getConf(appName string) *liverpc.ClientConfig {
c := conf.Conf.LiveRpc
if c != nil {
return c[appName]
}
return nil
}