|
|
@ -5,9 +5,10 @@ import (
|
|
|
|
chat "Open_IM/internal/rpc/msg"
|
|
|
|
chat "Open_IM/internal/rpc/msg"
|
|
|
|
"Open_IM/pkg/common/config"
|
|
|
|
"Open_IM/pkg/common/config"
|
|
|
|
"Open_IM/pkg/common/constant"
|
|
|
|
"Open_IM/pkg/common/constant"
|
|
|
|
|
|
|
|
"Open_IM/pkg/common/db/cache"
|
|
|
|
"Open_IM/pkg/common/db/controller"
|
|
|
|
"Open_IM/pkg/common/db/controller"
|
|
|
|
"Open_IM/pkg/common/db/model"
|
|
|
|
imdb "Open_IM/pkg/common/db/relation"
|
|
|
|
imdb "Open_IM/pkg/common/db/mysql"
|
|
|
|
"Open_IM/pkg/common/db/unrelation"
|
|
|
|
"Open_IM/pkg/common/log"
|
|
|
|
"Open_IM/pkg/common/log"
|
|
|
|
"Open_IM/pkg/common/middleware"
|
|
|
|
"Open_IM/pkg/common/middleware"
|
|
|
|
promePkg "Open_IM/pkg/common/prometheus"
|
|
|
|
promePkg "Open_IM/pkg/common/prometheus"
|
|
|
@ -67,8 +68,7 @@ func NewGroupServer(port int) *groupServer {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//redis
|
|
|
|
//redis
|
|
|
|
//mongo
|
|
|
|
//mongo
|
|
|
|
g.group = model.NewGroupController(groupModel)
|
|
|
|
g.GroupInterface = controller.NewGroupController(groupModel.DB, cache.InitRedis(), unrelation.InitMongo())
|
|
|
|
|
|
|
|
|
|
|
|
return &g
|
|
|
|
return &g
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|