package metas
|
|
|
|
import (
|
|
"time"
|
|
"cygnux/kepler/models"
|
|
)
|
|
|
|
const LIVECATEGORY = "metas_live_categories"
|
|
|
|
type LiveCategory struct {
|
|
Id string `json:"id" xql:"id,pk"`
|
|
CategoryName string `json:"categoryName"`
|
|
Index int `json:"index" xql:"idx"`
|
|
Icon string `json:"icon"`
|
|
Created *time.Time `json:"created,omitempty"`
|
|
Updated *time.Time `json:"updated,omitempty"`
|
|
}
|
|
|
|
const LIVEPROGRAM = "metas_live_programs"
|
|
|
|
type LiveProgram struct {
|
|
Id string `json:"id" xql:"id,pk"`
|
|
ProgramName string `json:"programName"`
|
|
Alias string `json:"alias"`
|
|
Index int `json:"index" xql:"idx"`
|
|
Icon string `json:"icon"`
|
|
Tags []models.StringArray `json:"tags"`
|
|
BasePath string `json:"basePath,omitempty"`
|
|
LiveUri string `json:"liveUri,omitempty"`
|
|
EventUri string `json:"eventUri,omitempty"`
|
|
ShiftUri string `json:"shiftUri,omitempty"`
|
|
Created *time.Time `json:"created,omitempty"`
|
|
Updated *time.Time `json:"updated,omitempty"`
|
|
}
|
|
|
|
const LIVECATEGORYPROGRAM = "metas_live_category_programs"
|
|
|
|
type LiveCategoryProgram struct {
|
|
CategoryId string `json:"categoryId" xql:",pk"`
|
|
ProgramId string `json:"programId" xql:",pk"`
|
|
Index int `json:"index" xql:"idx"`
|
|
Status int16 `json:"status"`
|
|
}
|
|
|
|
const LIVEEVENT = "metas_live_events"
|
|
|
|
type LiveEvent struct {
|
|
Id string `json:"id" xql:"id,pk"`
|
|
ProgramName string `json:"programName,omitempty"`
|
|
TvName string `json:"tvName"`
|
|
TvDescription string `json:"tvDescription"`
|
|
Date string `json:"date"`
|
|
Begin string `json:"begin"`
|
|
End string `json:"end"`
|
|
AbsBegin time.Time `json:"absBegin"`
|
|
AbsEnd time.Time `json:"absEnd"`
|
|
Duration int `json:"duration"`
|
|
Created *time.Time `json:"created,omitempty"`
|
|
Updated *time.Time `json:"updated,omitempty"`
|
|
}
|