Documentation
¶
Index ¶
- type AccessTokenResponse
- type AuthResponse
- type CollectionFilmRequest
- type CollectionFilmResponse
- type CollectionFilmsResponse
- type CollectionRequest
- type CollectionResponse
- type CollectionsResponse
- type ErrorResponse
- type FilmRequest
- type FilmResponse
- type FilmsResponse
- type LoginRequest
- type MessageResponse
- type RegisterRequest
- type UpdateUserRequest
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenResponse ¶
type AccessTokenResponse struct {
Token string `json:"access_token" example:"eyJhbGciOI6IkpXVCJ9.eyJzdk5EbifQ.4CfEaMw6Ur_fszI"`
}
type AuthResponse ¶
type AuthResponse struct {
User models.AuthResponse `json:"user"`
}
type CollectionFilmRequest ¶
type CollectionFilmResponse ¶
type CollectionFilmResponse struct {
CollectionFilm models.CollectionFilm `json:"collection_film"`
}
type CollectionFilmsResponse ¶
type CollectionFilmsResponse struct { CollectionFilms models.CollectionFilms `json:"collection_films"` Metadata filters.Metadata `json:"metadata"` }
type CollectionRequest ¶
type CollectionResponse ¶
type CollectionResponse struct {
Collection models.Collection `json:"collection"`
}
type CollectionsResponse ¶
type CollectionsResponse struct { Collections []models.Collection `json:"collections"` Metadata filters.Metadata `json:"metadata"` }
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error" example:"some kind of error"`
}
type FilmRequest ¶
type FilmRequest struct { IsFavorite bool `json:"is_favorite" example:"false"` Title string `json:"title" example:"My film"` Year int `json:"year" example:"2001"` Genre string `json:"genre" example:"Horror"` Description string `json:"description" example:"This is description"` Rating float64 `json:"rating" example:"6.7"` ImageURL string `json:"image_url" example:"http://k4sper1love.kz/images/default.png"` Comment string `json:"comment" example:"This is comment"` IsViewed bool `json:"is_viewed" example:"true"` UserRating float64 `json:"user_rating" example:"5.5"` Review string `json:"review" example:"This is review."` URL string `json:"url" example:"https://www.kino.kz/film/689/"` }
type FilmResponse ¶
type FilmsResponse ¶
type LoginRequest ¶
type MessageResponse ¶
type MessageResponse struct {
Message string `json:"message" example:"some kind of success message"`
}
type RegisterRequest ¶
type RegisterRequest struct {
LoginRequest
}
type UpdateUserRequest ¶
type UserResponse ¶
Click to show internal directories.
Click to hide internal directories.