重构数据引擎

This commit is contained in:
2026-05-29 18:39:32 +08:00
parent 3ced686cb5
commit 15db71b7ba
132 changed files with 2534 additions and 26198 deletions

20
main.go
View File

@@ -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 {}
}