20 lines
619 B
Go
20 lines
619 B
Go
package radio
|
|
|
|
import (
|
|
"sundynix-go/global"
|
|
)
|
|
|
|
// RadioCategory 电台分类表
|
|
type RadioCategory struct {
|
|
global.BaseModel
|
|
Name string `gorm:"size:50" json:"name"` // 分类名称
|
|
Description string `gorm:"size:255" json:"description"` // 分类描述
|
|
Sort int `gorm:"default:0" json:"sort"` // 排序
|
|
Status int `gorm:"default:1" json:"status"` // 状态 0:禁用 1:启用
|
|
Channels []*RadioChannel `gorm:"foreignKey:CategoryId" json:"channels"`
|
|
}
|
|
|
|
func (RadioCategory) TableName() string {
|
|
return "sundynix_radio_category"
|
|
}
|