24 lines
899 B
Go
24 lines
899 B
Go
package radio
|
|
|
|
import (
|
|
"sundynix-go/global"
|
|
"sundynix-go/model/system"
|
|
)
|
|
|
|
// RadioCategory 电台分类表
|
|
type RadioCategory struct {
|
|
global.BaseModel
|
|
Name string `gorm:"size:50" json:"name"` // 分类名称
|
|
Description string `gorm:"size:255" json:"description"` // 分类描述
|
|
IconId string `gorm:"size:50" json:"iconId"` // 图标OSS ID
|
|
Icon *system.Oss `gorm:"foreignKey:IconId" json:"icon"` // 图标OSS
|
|
CoverId string `gorm:"size:50" json:"coverId"` // 封面图OSS ID
|
|
Cover *system.Oss `gorm:"foreignKey:CoverId" json:"cover"` // 封面图OSS
|
|
Sort int `gorm:"default:0" json:"sort"` // 排序
|
|
Status int `gorm:"default:1" json:"status"` // 状态 0:禁用 1:启用
|
|
}
|
|
|
|
func (RadioCategory) TableName() string {
|
|
return "sundynix_radio_category"
|
|
}
|