|
@@ -7,13 +7,11 @@ import (
|
|
|
"log"
|
|
|
"time"
|
|
|
|
|
|
- "github.com/zeromicro/go-zero/zrpc"
|
|
|
-
|
|
|
- "app.yhyue.com/moapp/jypkg/middleground"
|
|
|
-
|
|
|
. "app.yhyue.com/moapp/jybase/es"
|
|
|
"app.yhyue.com/moapp/jybase/mongodb"
|
|
|
"app.yhyue.com/moapp/jybase/mysql"
|
|
|
+ "app.yhyue.com/moapp/jybase/redis"
|
|
|
+ "app.yhyue.com/moapp/jypkg/middleground"
|
|
|
"bp.jydev.jianyu360.cn/BaseService/fileCenter/rpc/filecenter"
|
|
|
"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/usercenter"
|
|
|
"bp.jydev.jianyu360.cn/CRM/application/api/internal/config"
|
|
@@ -24,6 +22,7 @@ import (
|
|
|
"github.com/ClickHouse/clickhouse-go/v2/lib/driver"
|
|
|
"github.com/zeromicro/go-zero/core/conf"
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
|
+ "github.com/zeromicro/go-zero/zrpc"
|
|
|
)
|
|
|
|
|
|
var configFile = flag.String("fs", "etc/crmapplication.yaml", "the config file")
|
|
@@ -170,6 +169,7 @@ func InitConf() {
|
|
|
log.Println("--初始化 elasticsearch--")
|
|
|
NewEs(DB.Es.Version, DB.Es.Addr, DB.Es.Size, DB.Es.UserName, DB.Es.Password)
|
|
|
}
|
|
|
+ redis.InitRedis(DB.Redis)
|
|
|
|
|
|
UserCenterRpc = usercenter.NewUserCenter(zrpc.MustNewClient(C.UserCenterRpc))
|
|
|
FileCenterRpc = filecenter.NewFileCenter(zrpc.MustNewClient(C.FileCenterRpc))
|