重构数据引擎
This commit is contained in:
20
main.go
20
main.go
@@ -1,9 +1,9 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"dataengine/controller/copydata"
|
||||
"dataengine/controller/dict"
|
||||
"dataengine/controller/tencent"
|
||||
syncCtrl "dataengine/controller/sync"
|
||||
syncSvc "dataengine/service/sync"
|
||||
|
||||
"gitea.com/red-future/common/http"
|
||||
"gitea.com/red-future/common/jaeger"
|
||||
@@ -17,21 +17,15 @@ func main() {
|
||||
ctx := context.Background()
|
||||
defer jaeger.ShutDown(ctx)
|
||||
|
||||
// 启动自动同步(后台循环执行,首次全量后续增量)
|
||||
syncSvc.InitAndStartAutoSync(ctx)
|
||||
|
||||
http.RouteRegister([]interface{}{
|
||||
// 接口管理
|
||||
dict.ApiInterface,
|
||||
dict.FieldMappingConfig,
|
||||
dict.DatasourcePlatform,
|
||||
copydata.AccountReportDetail,
|
||||
copydata.TaskReport,
|
||||
copydata.PopulationReport,
|
||||
copydata.MaterialReport,
|
||||
copydata.StorewideReport,
|
||||
copydata.CreativeReport,
|
||||
copydata.UnitReport,
|
||||
copydata.CampaignReport,
|
||||
// 腾讯广告OAuth
|
||||
tencent.OauthController,
|
||||
// 平台同步引擎
|
||||
syncCtrl.PlatformSyncController,
|
||||
})
|
||||
select {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user