19 lines
512 B
Go
19 lines
512 B
Go
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"
|
|
}
|