优化页面、修复BUG
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user