Documentation
¶
Index ¶
- Constants
- func BrPDF(pdf *gopdf.GoPdf)
- func TempFileNamePDf() string
- type CreateFeesInput
- type CreateMovieGenreLinkInput
- type CreateMovieInput
- type CreatePersonInMovieInput
- type CreatePersonInput
- type CreatePosterInput
- type CreateRatingInput
- type CreateSimpleInput
- type LoginUserInput
- type PostPersonalRatingInput
- type Service
- func (self *Service) CreateFees(context *gin.Context)
- func (self *Service) CreateMovie(context *gin.Context)
- func (self *Service) CreateMovieGenreLink(context *gin.Context)
- func (self *Service) CreatePerson(context *gin.Context)
- func (self *Service) CreatePersonInMovie(context *gin.Context)
- func (self *Service) CreatePoster(context *gin.Context)
- func (self *Service) CreateSimpleData(context *gin.Context)
- func (self *Service) FindAdv(context *gin.Context)
- func (self *Service) FindMovie(context *gin.Context)
- func (self *Service) FindMovies(context *gin.Context)
- func (self *Service) FindSimple(context *gin.Context)
- func (self *Service) FindSimpleAll(context *gin.Context)
- func (self *Service) GetGenres(context *gin.Context)
- func (self *Service) GetHealth(context *gin.Context)
- func (self *Service) GetPDF(context *gin.Context)
- func (self *Service) GetUserID(context *gin.Context) int64
- func (self *Service) LoginUser(context *gin.Context)
- func (self *Service) UpdateMovie(context *gin.Context)
- func (self *Service) UpdatePersonalScore(context *gin.Context)
- func (self *Service) ValidateAdmin(context *gin.Context)
- func (self *Service) ValidateToken(context *gin.Context)
- type UpdateMovieInput
Constants ¶
View Source
const SORT_SCORE = 1
View Source
const SORT_YEAR = 0
Variables ¶
This section is empty.
Functions ¶
func TempFileNamePDf ¶
func TempFileNamePDf() string
Types ¶
type CreateFeesInput ¶
type CreateMovieInput ¶
type CreateMovieInput struct { ExternalID int64 `json:"external_id" binding:"required"` MovieTypeID int64 `json:"movie_type_id" binding:"required"` Name string `json:"name" binding:"required"` AlternativeName string `json:"alternative_name" binding:"required"` Description string `json:"description" binding:"required"` Year int64 `json:"year"` StatusID int64 `json:"status_id" binding:"required"` Duration int64 `json:"duration"` Score float32 `json:"score"` Votes int64 `json:"votes" binding:"required"` AgeRating int64 `json:"age_rating"` CountryID int64 `json:"country_id" binding:"required"` }
type CreatePersonInput ¶
type CreatePosterInput ¶
type CreateRatingInput ¶
type CreateSimpleInput ¶
type LoginUserInput ¶
type PostPersonalRatingInput ¶
type Service ¶
type Service struct { Jwt utils.JwtWrapper DB *gorm.DB AdminPass string BackdropID int64 PreviewID int64 Domain string BaseUrl string }
func (*Service) CreateFees ¶
func (*Service) CreateMovieGenreLink ¶
func (*Service) CreatePerson ¶
func (*Service) CreatePersonInMovie ¶
func (*Service) CreatePoster ¶
func (*Service) CreateSimpleData ¶
func (*Service) FindMovies ¶
GET /movies Find a movie
func (*Service) FindSimple ¶
func (*Service) FindSimpleAll ¶
func (*Service) UpdateMovie ¶
PATCH /movies/:id Update a movie
func (*Service) UpdatePersonalScore ¶
func (*Service) ValidateAdmin ¶
func (*Service) ValidateToken ¶
type UpdateMovieInput ¶
type UpdateMovieInput struct { ExternalID int64 `json:"external_id"` MovieTypeID int64 `json:"movie_type_id"` Name string `json:"name"` AlternativeName string `json:"alternative_name"` Description string `json:"description"` Year int64 `json:"year"` StatusID int64 `json:"status_id"` Duration int64 `json:"duration"` Score float32 `json:"score"` Votes int64 `json:"votes"` AgeRating int64 `json:"age_rating"` CountryID int64 `json:"country_id"` }
Click to show internal directories.
Click to hide internal directories.