|
|
@ -29,7 +29,6 @@ var (
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type dataSrv struct {
|
|
|
|
type dataSrv struct {
|
|
|
|
// core.IndexPostsService
|
|
|
|
|
|
|
|
core.WalletService
|
|
|
|
core.WalletService
|
|
|
|
core.MessageService
|
|
|
|
core.MessageService
|
|
|
|
core.TopicService
|
|
|
|
core.TopicService
|
|
|
@ -55,12 +54,10 @@ type webDataSrvA struct {
|
|
|
|
|
|
|
|
|
|
|
|
func NewDataService() (core.DataService, core.VersionInfo) {
|
|
|
|
func NewDataService() (core.DataService, core.VersionInfo) {
|
|
|
|
lazyInitial()
|
|
|
|
lazyInitial()
|
|
|
|
|
|
|
|
|
|
|
|
db := conf.MustGormDB()
|
|
|
|
db := conf.MustGormDB()
|
|
|
|
pvs := security.NewPhoneVerifyService()
|
|
|
|
pvs := security.NewPhoneVerifyService()
|
|
|
|
tms := NewTweetMetricServentA(db)
|
|
|
|
tms := NewTweetMetricServentA(db)
|
|
|
|
cis := cache.NewEventCacheIndexSrv(tms)
|
|
|
|
cis := cache.NewEventCacheIndexSrv(tms)
|
|
|
|
|
|
|
|
|
|
|
|
ds := &dataSrv{
|
|
|
|
ds := &dataSrv{
|
|
|
|
TweetMetricServantA: tms,
|
|
|
|
TweetMetricServantA: tms,
|
|
|
|
WalletService: newWalletService(db),
|
|
|
|
WalletService: newWalletService(db),
|
|
|
|