数字人项目迁移
This commit is contained in:
28
digitalhuman/main.go
Normal file
28
digitalhuman/main.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"digital-human/controller"
|
||||
|
||||
_ "gitea.com/red-future/common/config"
|
||||
"gitea.com/red-future/common/http"
|
||||
"gitea.com/red-future/common/jaeger"
|
||||
_ "gitea.com/red-future/common/ragflow"
|
||||
_ "github.com/gogf/gf/contrib/drivers/pgsql/v2"
|
||||
_ "github.com/gogf/gf/contrib/nosql/redis/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
ctx := context.Background()
|
||||
defer jaeger.ShutDown(ctx)
|
||||
// 注册路由
|
||||
http.RouteRegister([]interface{}{
|
||||
controller.Audio,
|
||||
controller.CustomVoice,
|
||||
controller.DigitalHuman,
|
||||
controller.Video,
|
||||
controller.AsyncTask,
|
||||
})
|
||||
// 保持应用运行
|
||||
select {}
|
||||
}
|
||||
Reference in New Issue
Block a user