You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
571 B

package model
import (
"time"
)
const (
CarBrandStatusEnabled = 1 // 启用
CarBrandStatusDisabled = 2 // 停用
CarBrandIsHot = 1 // 热门
CarBrandIsHotFalse = 0 //非热门
)
type CarBrand struct {
Id uint `gorm:"primaryKey"`
BrandId uint
Icon string // 品牌图标
Name string // 品牌名称
Initial string // 品牌拼音首字母
Status uint // 状态 1=启用 2=停用
IsHot uint
SeriesGroups []CarSeriesGroup `gorm:"foreignKey:BrandId"`
CreatedAt time.Time
UpdatedAt time.Time
}