代码初始化
This commit is contained in:
33
main.go
Normal file
33
main.go
Normal file
@@ -0,0 +1,33 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"cid/controller/copydata"
|
||||
"cid/controller/dict"
|
||||
|
||||
"gitea.com/red-future/common/http"
|
||||
"gitea.com/red-future/common/jaeger"
|
||||
_ "gitea.com/red-future/common/ragflow" // RAGFlow 客户端自动初始化
|
||||
_ "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,
|
||||
})
|
||||
select {}
|
||||
}
|
||||
Reference in New Issue
Block a user