diff --git a/router/view.go b/router/view.go index 6803063..2a90c1d 100644 --- a/router/view.go +++ b/router/view.go @@ -296,4 +296,33 @@ func InitViewRouter(engine *gin.Engine) { engine.GET("/extend", tmpl.PageExtend) engine.GET("/extend_fastgpt", middleware.DomainLimitMiddleware, tmpl.PageExtendFastGpt) engine.GET("/extend_ragflow", middleware.DomainLimitMiddleware, tmpl.PageExtendRAGFlow) + + //数字人 + engine.GET("/digital_human", func(c *gin.Context) { + c.HTML(http.StatusOK, "digital_human.html", gin.H{}) + }) + //数字人基础配置 + engine.GET("/digital_human_base_setting", middleware.DomainLimitMiddleware, func(c *gin.Context) { + c.HTML(http.StatusOK, "digital_human_base_setting.html", gin.H{}) + }) + //数字人形象管理 + engine.GET("/digital_human_image_manage", middleware.DomainLimitMiddleware, func(c *gin.Context) { + c.HTML(http.StatusOK, "digital_human_image_manage.html", gin.H{}) + }) + //数字人形象库 + engine.GET("/digital_human_image_base", middleware.DomainLimitMiddleware, func(c *gin.Context) { + c.HTML(http.StatusOK, "digital_human_image_base.html", gin.H{}) + }) + //数字人动作库 + engine.GET("/digital_human_action_base", middleware.DomainLimitMiddleware, func(c *gin.Context) { + c.HTML(http.StatusOK, "digital_human_action_base.html", gin.H{}) + }) + //数字人语音管理 + engine.GET("/digital_human_voice_manage", middleware.DomainLimitMiddleware,func(c *gin.Context) { + c.HTML(http.StatusOK, "digital_human_voice_manage.html", gin.H{}) + }) + //数字人语音库 + engine.GET("/digital_human_voice_base", middleware.DomainLimitMiddleware, func(c *gin.Context) { + c.HTML(http.StatusOK, "digital_human_voice_base.html", gin.H{}) + }) } diff --git a/static/templates/default/digital_human.html b/static/templates/default/digital_human.html new file mode 100644 index 0000000..4a30b0d --- /dev/null +++ b/static/templates/default/digital_human.html @@ -0,0 +1,14 @@ +{{template "header" }} +
+ + +
+ + +{{template "setting_bottom" .}} diff --git a/static/templates/default/digital_human_action_base.html b/static/templates/default/digital_human_action_base.html new file mode 100644 index 0000000..709e6ba --- /dev/null +++ b/static/templates/default/digital_human_action_base.html @@ -0,0 +1,22 @@ +{{template "header" }} +
+ + +
+ + +{{template "setting_bottom" .}} + + diff --git a/static/templates/default/digital_human_base_setting.html b/static/templates/default/digital_human_base_setting.html new file mode 100644 index 0000000..709e6ba --- /dev/null +++ b/static/templates/default/digital_human_base_setting.html @@ -0,0 +1,22 @@ +{{template "header" }} +
+ + +
+ + +{{template "setting_bottom" .}} + + diff --git a/static/templates/default/digital_human_image_base.html b/static/templates/default/digital_human_image_base.html new file mode 100644 index 0000000..709e6ba --- /dev/null +++ b/static/templates/default/digital_human_image_base.html @@ -0,0 +1,22 @@ +{{template "header" }} +
+ + +
+ + +{{template "setting_bottom" .}} + + diff --git a/static/templates/default/digital_human_image_manage.html b/static/templates/default/digital_human_image_manage.html new file mode 100644 index 0000000..709e6ba --- /dev/null +++ b/static/templates/default/digital_human_image_manage.html @@ -0,0 +1,22 @@ +{{template "header" }} +
+ + +
+ + +{{template "setting_bottom" .}} + + diff --git a/static/templates/default/digital_human_left.html b/static/templates/default/digital_human_left.html new file mode 100644 index 0000000..d96bcb4 --- /dev/null +++ b/static/templates/default/digital_human_left.html @@ -0,0 +1,26 @@ +{{define "digital_human_left"}} +
+ + + + + 数字人基础配置 + 字人形象管理 + 数字人形象库 + 数字人动作库 + 数字人语音管理 + 数字人语音库 + + + + +
+{{end}} \ No newline at end of file diff --git a/static/templates/default/digital_human_voice_base.html b/static/templates/default/digital_human_voice_base.html new file mode 100644 index 0000000..709e6ba --- /dev/null +++ b/static/templates/default/digital_human_voice_base.html @@ -0,0 +1,22 @@ +{{template "header" }} +
+ + +
+ + +{{template "setting_bottom" .}} + + diff --git a/static/templates/default/digital_human_voice_manage.html b/static/templates/default/digital_human_voice_manage.html new file mode 100644 index 0000000..709e6ba --- /dev/null +++ b/static/templates/default/digital_human_voice_manage.html @@ -0,0 +1,22 @@ +{{template "header" }} +
+ + +
+ + +{{template "setting_bottom" .}} + + diff --git a/static/templates/default/extend_fastgpt.html b/static/templates/default/extend_fastgpt.html index 1d45671..9ae27ec 100644 --- a/static/templates/default/extend_fastgpt.html +++ b/static/templates/default/extend_fastgpt.html @@ -5,7 +5,7 @@ - + diff --git a/static/templates/default/extend_ragflow.html b/static/templates/default/extend_ragflow.html index 6a7a8a5..87d78e9 100644 --- a/static/templates/default/extend_ragflow.html +++ b/static/templates/default/extend_ragflow.html @@ -5,7 +5,7 @@ - + @@ -16,13 +16,6 @@ {{template "setting_bottom" .}} diff --git a/static/templates/default/nav.html b/static/templates/default/nav.html index c9b01e6..2e8b658 100644 --- a/static/templates/default/nav.html +++ b/static/templates/default/nav.html @@ -1,5 +1,6 @@ {{define "nav"}}
+ -