package models // Work 作品模型 type Work struct { ID string `json:"id"` Title string `json:"title"` Category string `json:"category"` Year string `json:"year"` HeroImg string `json:"heroImg"` Description string `json:"desc"` IsFeatured int `json:"isFeatured"` CreatedAt int64 `json:"createdAt"` UpdatedAt int64 `json:"updatedAt"` DeletedAt int64 `json:"deletedAt"` } // WorkTechStack 作品技术栈模型 type WorkTechStack struct { ID uint `json:"id"` WorkID string `json:"workId"` Category string `json:"category"` Item string `json:"item"` CreatedAt int64 `json:"createdAt"` DeletedAt int64 `json:"deletedAt"` } // WorkGallery 作品图库模型 type WorkGallery struct { ID uint `json:"id"` WorkID string `json:"workId"` ImageURL string `json:"imageUrl"` SortOrder uint `json:"sortOrder"` Description string `json:"description"` CreatedAt int64 `json:"createdAt"` DeletedAt int64 `json:"deletedAt"` } // WorkResponse 作品响应模型,包含关联数据 type WorkResponse struct { ID string `json:"id"` Title string `json:"title"` Category string `json:"category"` Year string `json:"year"` HeroImg string `json:"heroImg"` Desc string `json:"desc"` TechStack []map[string]interface{} `json:"techStack"` Gallery []string `json:"gallery"` Links map[string]interface{} `json:"links"` Next string `json:"next"` }