update
This commit is contained in:
@ -11,19 +11,43 @@ func (AppBrand) TableName() string {
|
||||
return "app_brands" // 根据实际表名调整
|
||||
}
|
||||
|
||||
// Article 文章/发布会数据表模型
|
||||
type Article struct {
|
||||
ID int64 `gorm:"primaryKey;column:id"`
|
||||
Title string `gorm:"column:title"`
|
||||
Images string `gorm:"column:images"`
|
||||
Platform string `gorm:"column:platform"`
|
||||
Brand int64 `gorm:"column:brand"`
|
||||
Module int `gorm:"column:module"`
|
||||
Year int `gorm:"column:year"`
|
||||
SourceURL string `gorm:"column:source_url"`
|
||||
Cover string `gorm:"column:cover"`
|
||||
// BrandRunway 时尚发布会主表
|
||||
type BrandRunway struct {
|
||||
ID uint `gorm:"primaryKey;column:id;autoIncrement" json:"id"`
|
||||
Title string `gorm:"column:title" json:"title"`
|
||||
Description string `gorm:"column:description" json:"description"`
|
||||
CreatedAt int64 `gorm:"column:created_at" json:"created_at"`
|
||||
UpdatedAt int64 `gorm:"column:updated_at" json:"updated_at"`
|
||||
IsDeleted uint8 `gorm:"column:is_deleted" json:"is_deleted"`
|
||||
ImageCount uint16 `gorm:"column:image_count" json:"image_count"`
|
||||
BrandID uint `gorm:"column:brand_id" json:"brand_id"`
|
||||
Year uint16 `gorm:"column:year" json:"year"`
|
||||
Cover string `gorm:"column:cover" json:"cover"`
|
||||
SourceURL string `gorm:"column:source_url" json:"source_url"`
|
||||
CollectionType string `gorm:"column:collection_type" json:"collection_type"`
|
||||
Season string `gorm:"column:season" json:"season"`
|
||||
SeasonCode string `gorm:"column:season_code" json:"season_code"`
|
||||
}
|
||||
|
||||
func (Article) TableName() string {
|
||||
return "articles" // 根据实际表名调整
|
||||
// TableName 指定主表名
|
||||
func (BrandRunway) TableName() string {
|
||||
return "brand_runway"
|
||||
}
|
||||
|
||||
// BrandRunwayImage 发布会图片表
|
||||
type BrandRunwayImage struct {
|
||||
ID uint `gorm:"primaryKey;column:id;autoIncrement" json:"id"`
|
||||
CreatedAt int64 `gorm:"column:created_at" json:"created_at"`
|
||||
UpdatedAt int64 `gorm:"column:updated_at" json:"updated_at"`
|
||||
IsDeleted uint8 `gorm:"column:is_deleted" json:"is_deleted"`
|
||||
Image string `gorm:"column:image" json:"image"`
|
||||
RunwayID uint `gorm:"column:runway_id" json:"runway_id"`
|
||||
BrandID uint `gorm:"column:brand_id" json:"brand_id"`
|
||||
Name string `gorm:"column:name" json:"name"`
|
||||
SortOrder uint `gorm:"column:sort_order" json:"sort_order"`
|
||||
}
|
||||
|
||||
// TableName 指定图片明细表名
|
||||
func (BrandRunwayImage) TableName() string {
|
||||
return "brand_runway_images"
|
||||
}
|
||||
Reference in New Issue
Block a user