yogai/model/video.go

30 lines
598 B
Go
Raw Normal View History

2023-05-08 15:53:06 +02:00
package model
import "github.com/google/uuid"
2023-05-27 14:36:22 +02:00
type VideoStatus string
2023-05-08 15:53:06 +02:00
const (
2023-05-27 14:36:22 +02:00
StatusNew VideoStatus = "new"
StatusHasMetadata VideoStatus = "has_metadata"
StatusHasSummary VideoStatus = "has_summary"
StatusReady VideoStatus = "ready"
2023-05-08 15:53:06 +02:00
)
2023-05-27 14:36:22 +02:00
type YoutubeVideoID string
type YoutubeChannelID string
2023-05-08 15:53:06 +02:00
type Video struct {
2023-05-31 16:27:35 +02:00
ID uuid.UUID
Status VideoStatus
YoutubeID YoutubeVideoID
YoutubeChannelID YoutubeChannelID
YoutubeTitle string
YoutubeDescription string
YoutubeDuration string
YoutubePublishedAt string
Summary string
2023-05-08 15:53:06 +02:00
}