diff --git a/main.go b/main.go
index 89c759d..c9b9c21 100644
--- a/main.go
+++ b/main.go
@@ -2,7 +2,6 @@ package main
import (
"context"
- "embed"
commonHttp "video-factory/common/http"
"video-factory/shortdrama/controller"
"video-factory/shortdrama/service"
@@ -10,36 +9,7 @@ import (
_ "github.com/gogf/gf/contrib/drivers/sqlite/v2"
)
-//go:embed shortdrama/view/*.html
-var viewFS embed.FS
-
func main() {
- //// ==================== HTML 页面路由 ====================
- //servePage := func(name string) ghttp.HandlerFunc {
- // return func(r *ghttp.Request) {
- // // 优先读本地文件(通过 volume 挂载可热更新),否则用 embed
- // data, err := os.ReadFile("shortdrama/view/" + name)
- // if err != nil {
- // data, err = viewFS.ReadFile("shortdrama/view/" + name)
- // if err != nil {
- // r.Response.WriteStatus(http.StatusNotFound)
- // return
- // }
- // }
- // r.Response.Write(data)
- // }
- //}
- //
- //commonHttp.Httpserver.BindHandler("/", servePage("index.html"))
- //commonHttp.Httpserver.BindHandler("/views/*", func(r *ghttp.Request) {
- // name := strings.TrimPrefix(r.URL.Path, "/views/")
- // if name == "" || !strings.HasSuffix(name, ".html") {
- // r.Response.WriteStatus(http.StatusNotFound)
- // return
- // }
- // servePage(name)(r)
- //})
-
// ==================== API 路由(通过 RouteRegister 自动注册,遵循 ai-agent 规范) ====================
commonHttp.RouteRegister([]interface{}{
controller.Drama,
diff --git a/shortdrama/view/index.html b/shortdrama/view/index.html
deleted file mode 100644
index 939feea..0000000
--- a/shortdrama/view/index.html
+++ /dev/null
@@ -1,630 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/shortdrama/view/modal-actor.html b/shortdrama/view/modal-actor.html
deleted file mode 100644
index bbd2f0d..0000000
--- a/shortdrama/view/modal-actor.html
+++ /dev/null
@@ -1,127 +0,0 @@
-
-
-
-
diff --git a/shortdrama/view/modal-char-form.html b/shortdrama/view/modal-char-form.html
deleted file mode 100644
index 486cd07..0000000
--- a/shortdrama/view/modal-char-form.html
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
添加演员
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/shortdrama/view/modal-config.html b/shortdrama/view/modal-config.html
deleted file mode 100644
index 302bf41..0000000
--- a/shortdrama/view/modal-config.html
+++ /dev/null
@@ -1,293 +0,0 @@
-
-
-
-
-
-
-
-
-
模型管理
-
-
-
-
-
-
-
-
-
-
-
-
- 基础配置
- 必填
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 基础配置
- 必填
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 参考视频
-
-
-
-
-
-
-
-
-
-
-
-
- 参考音频
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
配置已保存
-
-
diff --git a/shortdrama/view/modal-confirm.html b/shortdrama/view/modal-confirm.html
deleted file mode 100644
index 427b185..0000000
--- a/shortdrama/view/modal-confirm.html
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
确认删除
-
确定要删除这个短剧吗?此操作不可恢复。
-
-
-
-
-
-
diff --git a/shortdrama/view/modal-drama.html b/shortdrama/view/modal-drama.html
deleted file mode 100644
index 799a32a..0000000
--- a/shortdrama/view/modal-drama.html
+++ /dev/null
@@ -1,644 +0,0 @@
-
-
-
-
-
-
-
-
-
-
短剧编辑
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/shortdrama/view/modal-ep-form.html b/shortdrama/view/modal-ep-form.html
deleted file mode 100644
index d475d22..0000000
--- a/shortdrama/view/modal-ep-form.html
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
添加剧集
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/shortdrama/view/modal-episode.html b/shortdrama/view/modal-episode.html
deleted file mode 100644
index f7f10a7..0000000
--- a/shortdrama/view/modal-episode.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
diff --git a/shortdrama/view/modal-prop-form.html b/shortdrama/view/modal-prop-form.html
deleted file mode 100644
index 4924261..0000000
--- a/shortdrama/view/modal-prop-form.html
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
添加道具
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/shortdrama/view/modal-prop.html b/shortdrama/view/modal-prop.html
deleted file mode 100644
index 74cc065..0000000
--- a/shortdrama/view/modal-prop.html
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
diff --git a/shortdrama/view/modal-review.html b/shortdrama/view/modal-review.html
deleted file mode 100644
index 226e469..0000000
--- a/shortdrama/view/modal-review.html
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
\ No newline at end of file
diff --git a/shortdrama/view/modal-scene-form.html b/shortdrama/view/modal-scene-form.html
deleted file mode 100644
index 48c0cc9..0000000
--- a/shortdrama/view/modal-scene-form.html
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
添加场景
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/shortdrama/view/modal-scene.html b/shortdrama/view/modal-scene.html
deleted file mode 100644
index b88513f..0000000
--- a/shortdrama/view/modal-scene.html
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-