You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
synctv/internal/model/movie.go

29 lines
685 B
Go

package model
import (
"gorm.io/gorm"
)
type Movie struct {
gorm.Model
Position uint `gorm:"not null"`
RoomID uint `gorm:"not null;index"`
CreatorID uint `gorm:"not null;index" json:"creatorId"`
MovieInfo
}
type MovieInfo struct {
BaseMovieInfo
PullKey string `json:"pullKey"`
}
type BaseMovieInfo struct {
Url string `json:"url"`
Name string `gorm:"not null" json:"name"`
Live bool `json:"live"`
Proxy bool `json:"proxy"`
RtmpSource bool `json:"rtmpSource"`
Type string `json:"type"`
Headers map[string]string `gorm:"serializer:fastjson" json:"headers"`
}