api/models/video.go

19 lines
409 B
Go
Raw Normal View History

2022-10-27 04:04:49 +02:00
package models
import (
"time"
)
type Video struct {
// YouTube ID of the video
2022-10-29 05:09:52 +02:00
ID string `json:"video_id"`
2022-10-27 04:04:49 +02:00
// Name of the channel the video belongs to
2022-10-29 05:09:52 +02:00
ChannelName string `json:"channel_name"`
2022-10-27 04:04:49 +02:00
// Title of the video
2022-10-29 05:09:52 +02:00
Title string `json:"title"`
2022-10-27 04:04:49 +02:00
// Video publish timestamp
2022-10-29 05:09:52 +02:00
PublishedTime time.Time `json:"published_timestamp"`
2022-10-27 04:04:49 +02:00
// Video watch timestamp
2022-10-29 05:09:52 +02:00
WatchTime *time.Time `json:"watch_timestamp"`
2022-10-27 04:04:49 +02:00
}