38 lines
848 B
Go
38 lines
848 B
Go
package main
|
|
|
|
import (
|
|
"dataengine/controller/copydata"
|
|
"dataengine/controller/dict"
|
|
"dataengine/controller/tencent"
|
|
|
|
"gitea.com/red-future/common/http"
|
|
"gitea.com/red-future/common/jaeger"
|
|
_ "gitea.com/red-future/common/k3sconfig"
|
|
_ "github.com/gogf/gf/contrib/drivers/pgsql/v2"
|
|
_ "github.com/gogf/gf/contrib/nosql/redis/v2"
|
|
"golang.org/x/net/context"
|
|
)
|
|
|
|
func main() {
|
|
ctx := context.Background()
|
|
defer jaeger.ShutDown(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,
|
|
})
|
|
select {}
|
|
}
|