From 6ee0e6712551e7d9da3eb3e2efd06a9e36ea8a06 Mon Sep 17 00:00:00 2001 From: LUONINGDAN Date: Wed, 18 Dec 2024 10:56:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/view.go | 29 +++++++++++++++++++ static/templates/default/digital_human.html | 14 +++++++++ .../default/digital_human_action_base.html | 22 ++++++++++++++ .../default/digital_human_base_setting.html | 22 ++++++++++++++ .../default/digital_human_image_base.html | 22 ++++++++++++++ .../default/digital_human_image_manage.html | 22 ++++++++++++++ .../templates/default/digital_human_left.html | 26 +++++++++++++++++ .../default/digital_human_voice_base.html | 22 ++++++++++++++ .../default/digital_human_voice_manage.html | 22 ++++++++++++++ static/templates/default/extend_fastgpt.html | 2 +- static/templates/default/extend_ragflow.html | 9 +----- static/templates/default/nav.html | 23 +++++++++++---- static/templates/default/setting_bottom.html | 4 +++ 13 files changed, 225 insertions(+), 14 deletions(-) create mode 100644 static/templates/default/digital_human.html create mode 100644 static/templates/default/digital_human_action_base.html create mode 100644 static/templates/default/digital_human_base_setting.html create mode 100644 static/templates/default/digital_human_image_base.html create mode 100644 static/templates/default/digital_human_image_manage.html create mode 100644 static/templates/default/digital_human_left.html create mode 100644 static/templates/default/digital_human_voice_base.html create mode 100644 static/templates/default/digital_human_voice_manage.html 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"}}
+ -