init: radio init commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package radio
|
||||
|
||||
import (
|
||||
"sundynix-go/global"
|
||||
)
|
||||
|
||||
// RadioHistory 用户收听历史表
|
||||
type RadioHistory struct {
|
||||
global.BaseModel
|
||||
UserId string `gorm:"size:50;index" json:"userId"` // 用户ID
|
||||
ProgramId string `gorm:"size:50;index" json:"programId"` // 节目ID
|
||||
Progress int `gorm:"default:0" json:"progress"` // 播放进度(秒)
|
||||
Duration int `gorm:"default:0" json:"duration"` // 节目总时长(秒)
|
||||
}
|
||||
|
||||
func (RadioHistory) TableName() string {
|
||||
return "sundynix_radio_history"
|
||||
}
|
||||
Reference in New Issue
Block a user