init: radio init commit

This commit is contained in:
Blizzard
2026-02-28 15:56:26 +08:00
parent fc585fa4df
commit d79beb4663
63 changed files with 2540 additions and 6399 deletions
+18
View File
@@ -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"
}