优化页面、修复BUG

This commit is contained in:
李琦
2026-07-04 17:58:19 +08:00
parent e4baa4b585
commit 88c447fe18
34 changed files with 5884 additions and 13 deletions

View File

@@ -13,6 +13,8 @@ type Work struct {
Category string `json:"category" gorm:"column:category"`
Year string `json:"year" gorm:"column:year"`
HeroImg string `json:"heroImg" gorm:"column:hero_img"`
HeroVideo string `json:"heroVideo" gorm:"column:hero_video"`
VideoID string `json:"videoId" gorm:"column:video_id"`
Description string `json:"desc" gorm:"column:description;type:text"`
Links string `json:"links" gorm:"column:links;type:text"` // JSON格式存储链接
IsFeatured int `json:"isFeatured" gorm:"column:is_featured;default:0"`
@@ -107,6 +109,9 @@ type WorkResponse struct {
Category string `json:"category"`
Year string `json:"year"`
HeroImg string `json:"heroImg"`
HeroVideo string `json:"heroVideo,omitempty"`
VideoID string `json:"videoId,omitempty"`
VideoURL string `json:"videoUrl,omitempty"`
Desc string `json:"desc"`
TechStack []map[string]interface{} `json:"techStack"`
Gallery []string `json:"gallery"`