rewiew database connect

This commit is contained in:
Shuhrat Tultaganov committed 2022-12-31 01:43:30 +03:00
1 parent cdc88752da
commit 9bb611c0a2
17 files changed
+201 -40

No files matched your search

+52
View File
@@ -0,0 +1,52 @@
package model
type AutoGenerated struct {
KinopoiskID int `json:"kinopoiskId"`
ImdbID interface{} `json:"imdbId"`
NameRu string `json:"nameRu"`
NameEn interface{} `json:"nameEn"`
NameOriginal string `json:"nameOriginal"`
PosterURL string `json:"posterUrl"`
PosterURLPreview string `json:"posterUrlPreview"`
CoverURL string `json:"coverUrl"`
LogoURL string `json:"logoUrl"`
ReviewsCount int `json:"reviewsCount"`
RatingGoodReview float64 `json:"ratingGoodReview"`
RatingGoodReviewVoteCount int `json:"ratingGoodReviewVoteCount"`
RatingKinopoisk float64 `json:"ratingKinopoisk"`
RatingKinopoiskVoteCount int `json:"ratingKinopoiskVoteCount"`
RatingImdb float64 `json:"ratingImdb"`
RatingImdbVoteCount int `json:"ratingImdbVoteCount"`
RatingFilmCritics float64 `json:"ratingFilmCritics"`
RatingFilmCriticsVoteCount int `json:"ratingFilmCriticsVoteCount"`
RatingAwait interface{} `json:"ratingAwait"`
RatingAwaitCount int `json:"ratingAwaitCount"`
RatingRfCritics interface{} `json:"ratingRfCritics"`
RatingRfCriticsVoteCount int `json:"ratingRfCriticsVoteCount"`
WebURL string `json:"webUrl"`
Year int `json:"year"`
FilmLength int `json:"filmLength"`
Slogan string `json:"slogan"`
Description string `json:"description"`
ShortDescription string `json:"shortDescription"`
EditorAnnotation interface{} `json:"editorAnnotation"`
IsTicketsAvailable bool `json:"isTicketsAvailable"`
ProductionStatus interface{} `json:"productionStatus"`
Type string `json:"type"`
RatingMpaa string `json:"ratingMpaa"`
RatingAgeLimits string `json:"ratingAgeLimits"`
Countries []struct {
Country string `json:"country"`
} `json:"countries"`
Genres []struct {
Genre string `json:"genre"`
} `json:"genres"`
StartYear interface{} `json:"startYear"`
EndYear interface{} `json:"endYear"`
Serial bool `json:"serial"`
ShortFilm bool `json:"shortFilm"`
Completed bool `json:"completed"`
HasImax bool `json:"hasImax"`
Has3D bool `json:"has3D"`
LastSync string `json:"lastSync"`
}
+76
View File
@@ -0,0 +1,76 @@
package model
type vdn struct {
Result bool `json:"result"`
Data []struct {
ID int `json:"id"`
RuTitle string `json:"ru_title"`
OrigTitle string `json:"orig_title"`
ImdbID string `json:"imdb_id"`
KinopoiskID string `json:"kinopoisk_id"`
DefaultMediaID interface{} `json:"default_media_id"`
Created string `json:"created"`
Released string `json:"released"`
Updated string `json:"updated"`
Blocked int `json:"blocked"`
Media []struct {
ID int `json:"id"`
TranslationID int `json:"translation_id"`
ContentID int `json:"content_id"`
ContentType string `json:"content_type"`
TvSeriesID interface{} `json:"tv_series_id"`
SourceQuality string `json:"source_quality"`
MaxQuality int `json:"max_quality"`
Path string `json:"path"`
Duration int `json:"duration"`
Created string `json:"created"`
Accepted string `json:"accepted"`
DeletedAt interface{} `json:"deleted_at"`
Blocked int `json:"blocked"`
CountDownload int `json:"count_download"`
Qualities []struct {
ID int64 `json:"id"`
URL string `json:"url"`
Resolution int `json:"resolution"`
MediaID int `json:"media_id"`
} `json:"qualities"`
Translation struct {
ID int `json:"id"`
Title string `json:"title"`
Priority int `json:"priority"`
IframeSrc string `json:"iframe_src"`
Iframe string `json:"iframe"`
ShortTitle string `json:"short_title"`
SmartTitle string `json:"smart_title"`
ShorterTitle string `json:"shorter_title"`
} `json:"translation"`
} `json:"media"`
PreviewIframeSrc string `json:"preview_iframe_src"`
IframeSrc string `json:"iframe_src"`
Iframe string `json:"iframe"`
Translations []struct {
ID int `json:"id"`
Title string `json:"title"`
Priority int `json:"priority"`
IframeSrc string `json:"iframe_src"`
Iframe string `json:"iframe"`
ShortTitle string `json:"short_title"`
SmartTitle string `json:"smart_title"`
ShorterTitle string `json:"shorter_title"`
} `json:"translations"`
Year string `json:"year"`
ContentType string `json:"content_type"`
} `json:"data"`
CurrentPage int `json:"current_page"`
FirstPageURL string `json:"first_page_url"`
From int `json:"from"`
LastPage int `json:"last_page"`
LastPageURL string `json:"last_page_url"`
NextPageURL string `json:"next_page_url"`
Path string `json:"path"`
PerPage int `json:"per_page"`
PrevPageURL interface{} `json:"prev_page_url"`
To int `json:"to"`
Total int `json:"total"`
TotalCount int `json:"total_count"`
}