Files
nl-video-api/internal/model/entity/user_watch_history.go
2025-08-03 00:11:15 +08:00

24 lines
1.4 KiB
Go

// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// UserWatchHistory is the golang structure for table nl_user_watch_history.
type UserWatchHistory struct {
Id uint `json:"id" orm:"id" description:"观看记录ID"`
UserId int `json:"user_id" orm:"user_id" description:"用户ID"`
MovieId int `json:"movie_id" orm:"movie_id" description:"影片ID"`
EpisodeId int `json:"episode_id" orm:"episode_id" description:"集数ID"`
WatchTime int `json:"watch_time" orm:"watch_time" description:"观看时长(秒)"`
TotalTime int `json:"total_time" orm:"total_time" description:"总时长(秒)"`
Progress float64 `json:"progress" orm:"progress" description:"观看进度百分比"`
LastWatchTime int `json:"last_watch_time" orm:"last_watch_time" description:"最后观看时间"`
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"`
}