Initial commit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
谢宇宁
2026-10-22 14:47:17 +07:00
co-authored by Claude Opus 5.5
commit 3639d2184a
574 changed files with 61690 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
package web
import (
"videoweb/app/service/playletser"
"github.com/gin-gonic/gin"
)
// Index 首页 SSR:拉取 /api/app/playlet/home,直接用接口字段渲染。
func Index(c *gin.Context) {
raw := playletser.FetchHomeOrEmpty(c)
data := gin.H{
"title": "黄果短剧",
"navActive": "home",
"homeResponse": raw,
"seoInfo": raw.SeoInfo,
"announcements": raw.Announcements,
"homeCategoryData": raw.HomeCategoryData,
"homeRecommendThemes": raw.HomeRecommendThemes,
"homeBannerData": playletser.ActiveHomeBanners(raw.HomeBannerData),
}
HTMLOK(c, "index.html", data)
}