|
|
@ -4,7 +4,7 @@ import ( |
|
|
|
"errors" |
|
|
|
"encoding/json" |
|
|
|
"database/sql/driver" |
|
|
|
"time" |
|
|
|
//"time"
|
|
|
|
"cygnux/kepler/models" |
|
|
|
"cygnux/kepler/models/metas" |
|
|
|
) |
|
|
@ -63,21 +63,21 @@ type PublishedVodCategory struct { |
|
|
|
const PUBLISHEDVODALBUM = "published_vod_albums" |
|
|
|
|
|
|
|
type PublishedVodAlbum struct { |
|
|
|
metas.VodAlbum |
|
|
|
metas.VodAlbum `xql:"skips:ProviderId;"` |
|
|
|
//Id string `json:"id"`
|
|
|
|
//AlbumName string `json:"albumName"`
|
|
|
|
//NameInitials string `json:"-" xql:"name_initials"`
|
|
|
|
NameInitials string `json:"nameInitials,omitempty" xql:"name_initials"` |
|
|
|
//IsSeries bool `json:"isSeries"`
|
|
|
|
//FilmTotal int `json:"filmTotal"`
|
|
|
|
//FilmCount int `json:"filmCount"`
|
|
|
|
//FilmIndex int `json:"filmIndex"`
|
|
|
|
//Remark string `json:"remark"`
|
|
|
|
//Index int `json:"-" xql:"idx"`
|
|
|
|
Duration int `json:"duration"` |
|
|
|
Played int64 `json:"played"` |
|
|
|
Viewed int64 `json:"viewed"` |
|
|
|
Duration int `json:"duration" xql:"-"` |
|
|
|
Played int64 `json:"played" xql:"-"` |
|
|
|
Viewed int64 `json:"viewed" xql:"-"` |
|
|
|
//AlbumPicture string `json:"albumPicture"`
|
|
|
|
Language string `json:"language"` |
|
|
|
Language string `json:"language" xql:"-"` |
|
|
|
//IssueDate string `json:"issueDate,omitempty"`
|
|
|
|
//PublishTime *time.Time `json:"publishTime,omitempty"`
|
|
|
|
//Score float32 `json:"score,omitempty"`
|
|
|
@ -89,11 +89,11 @@ type PublishedVodAlbum struct { |
|
|
|
Crews models.JSONDictionary `json:"crews,omitempty"` |
|
|
|
Videos models.JSONDictionaryArray `json:"videos,omitempty" xql:"-"` |
|
|
|
ScreenShots models.StringArray `json:"screenShots,omitempty" xql:"-"` |
|
|
|
VIPInfo models.JSONDictionary `json:"vipInfo,omitempty" xql:"-"` |
|
|
|
VIPInfo models.JSONDictionary `json:"vipInfo,omitempty" xql:"vip_info"` |
|
|
|
PlayControl models.JSONDictionary `json:"playCtrl,omitempty" xql:"-"` |
|
|
|
//Description string `json:"description,omitempty"`
|
|
|
|
//Created *time.Time `json:"created,omitempty"`
|
|
|
|
Updated *time.Time `json:"updated,omitempty"` |
|
|
|
//Updated *time.Time `json:"updated,omitempty"`
|
|
|
|
Films interface{} `json:"films,omitempty" xql:"-"` |
|
|
|
RelatedAlbums interface{} `json:"relatedAlbums,omitempty" xql:"-"` |
|
|
|
} |
|
|
@ -101,9 +101,9 @@ type PublishedVodAlbum struct { |
|
|
|
const PUBLISHEDVODFILM = "published_vod_films" |
|
|
|
|
|
|
|
type PublishedVodFilm struct { |
|
|
|
metas.VodFilm |
|
|
|
AlbumId string `json:"albumId"` |
|
|
|
//FilmId string `json:"filmId"`
|
|
|
|
metas.VodFilm `xql:"skips:Id;"` |
|
|
|
AlbumId string `json:"albumId" xql:"album_id,pk"` |
|
|
|
FilmId string `json:"filmId" xql:"film_id,pk"` |
|
|
|
//FilmName string `json:"filmName"`
|
|
|
|
Index int `json:"index" xql:"idx"` |
|
|
|
//Duration int `json:"duration"`
|
|
|
@ -113,7 +113,7 @@ type PublishedVodFilm struct { |
|
|
|
//Remark string `json:"remark"`
|
|
|
|
//Language string `json:"language"`
|
|
|
|
//IssueDate string `json:"issueDate,omitempty"`
|
|
|
|
PlayControl models.JSONDictionary `json:"playCtrl,omitempty"` |
|
|
|
PlayControl models.JSONDictionary `json:"playCtrl,omitempty" xql:"play_ctrl"` |
|
|
|
Crews models.JSONDictionary `json:"crews,omitempty"` |
|
|
|
Videos models.JSONDictionaryArray `json:"videos,omitempty"` |
|
|
|
ScreenShots models.StringArray `json:"screenShots,omitempty"` |
|
|
|