30 lines
785 B
Go
30 lines
785 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"digital-human/digitalhuman/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{}{
|
|
//digitalhuman相关接口
|
|
controller.Audio, // 语音相关接口
|
|
controller.CustomVoice, // 自定义语音相关接口
|
|
controller.DigitalHuman, // 数字人相关接口
|
|
controller.Video, // 视频相关接口
|
|
controller.AsyncTask, // 异步任务相关接口
|
|
})
|
|
// 保持应用运行
|
|
select {}
|
|
}
|