model

package
v0.0.0-...-97ddbf9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseErrorResponse

type BaseErrorResponse struct {
	Detail string `json:"detail"`
}

func (BaseErrorResponse) MarshalEasyJSON

func (v BaseErrorResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (BaseErrorResponse) MarshalJSON

func (v BaseErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*BaseErrorResponse) UnmarshalEasyJSON

func (v *BaseErrorResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BaseErrorResponse) UnmarshalJSON

func (v *BaseErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type IngredientInRecipeCreationDTO

type IngredientInRecipeCreationDTO struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID string `json:"id"`
	// Amount is amount of ingredient in it's measurement unit.
	Amount uint32 `json:"amount"`
}

IngredientInRecipeCreationDTO godoc.

func (IngredientInRecipeCreationDTO) MarshalEasyJSON

func (v IngredientInRecipeCreationDTO) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (IngredientInRecipeCreationDTO) MarshalJSON

func (v IngredientInRecipeCreationDTO) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*IngredientInRecipeCreationDTO) UnmarshalEasyJSON

func (v *IngredientInRecipeCreationDTO) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*IngredientInRecipeCreationDTO) UnmarshalJSON

func (v *IngredientInRecipeCreationDTO) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type IngredientInRecipeDTO

type IngredientInRecipeDTO struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID string `json:"id"`
	// Name is public name of recipe.
	Name string `json:"name"`
	// MeasurementUnit is measurement unit of ingredient.
	MeasurementUnit string `json:"measurement_unit"`
	// Amount is amount of ingredient in recipe.
	Amount uint32 `json:"amount"`
}

func (IngredientInRecipeDTO) MarshalEasyJSON

func (v IngredientInRecipeDTO) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (IngredientInRecipeDTO) MarshalJSON

func (v IngredientInRecipeDTO) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*IngredientInRecipeDTO) UnmarshalEasyJSON

func (v *IngredientInRecipeDTO) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*IngredientInRecipeDTO) UnmarshalJSON

func (v *IngredientInRecipeDTO) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type IngredientsGetAllRequest

type IngredientsGetAllRequest struct {
	Name string `json:"-" query:"name"`
}

func (IngredientsGetAllRequest) MarshalEasyJSON

func (v IngredientsGetAllRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (IngredientsGetAllRequest) MarshalJSON

func (v IngredientsGetAllRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*IngredientsGetAllRequest) UnmarshalEasyJSON

func (v *IngredientsGetAllRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*IngredientsGetAllRequest) UnmarshalJSON

func (v *IngredientsGetAllRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type IngredientsGetByIDRequest

type IngredientsGetByIDRequest struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID string `json:"-" param:"id"`
}

func (IngredientsGetByIDRequest) MarshalEasyJSON

func (v IngredientsGetByIDRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (IngredientsGetByIDRequest) MarshalJSON

func (v IngredientsGetByIDRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*IngredientsGetByIDRequest) UnmarshalEasyJSON

func (v *IngredientsGetByIDRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*IngredientsGetByIDRequest) UnmarshalJSON

func (v *IngredientsGetByIDRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type IngredientsGetByIDResponse

type IngredientsGetByIDResponse struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID              string `json:"id"`
	Name            string `json:"name"`
	MeasurementUnit string `json:"measurement_unit"`
}

func (IngredientsGetByIDResponse) MarshalEasyJSON

func (v IngredientsGetByIDResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (IngredientsGetByIDResponse) MarshalJSON

func (v IngredientsGetByIDResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*IngredientsGetByIDResponse) UnmarshalEasyJSON

func (v *IngredientsGetByIDResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*IngredientsGetByIDResponse) UnmarshalJSON

func (v *IngredientsGetByIDResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type IngredientsGetManyResponse

type IngredientsGetManyResponse []IngredientsGetByIDResponse

type RecipeDTO

type RecipeDTO struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID string `json:"id"`
	// Tags is array of tags in recipe.
	Tags []TagDTO `json:"tags"`
	// Author is info object of creator of recipe.
	Author           UserInRecipe            `json:"author"`
	Ingredients      []IngredientInRecipeDTO `json:"ingredients"`
	IsFavorited      bool                    `json:"is_favorited"`
	IsInShoppingCart bool                    `json:"is_in_shopping_cart"`
	Name             string                  `json:"name"`
	Image            string                  `json:"image"`
	Text             string                  `json:"text"`
	CookingTime      uint32                  `json:"cooking_time"`
}

func (RecipeDTO) MarshalEasyJSON

func (v RecipeDTO) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecipeDTO) MarshalJSON

func (v RecipeDTO) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RecipeDTO) UnmarshalEasyJSON

func (v *RecipeDTO) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecipeDTO) UnmarshalJSON

func (v *RecipeDTO) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecipeInUsersSubscriptions

type RecipeInUsersSubscriptions struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID          string `json:"id"`
	Name        string `json:"name"`
	Image       string `json:"image"`
	CookingTime uint32 `json:"cooking_time"`
}

func (RecipeInUsersSubscriptions) MarshalEasyJSON

func (v RecipeInUsersSubscriptions) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecipeInUsersSubscriptions) MarshalJSON

func (v RecipeInUsersSubscriptions) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RecipeInUsersSubscriptions) UnmarshalEasyJSON

func (v *RecipeInUsersSubscriptions) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecipeInUsersSubscriptions) UnmarshalJSON

func (v *RecipeInUsersSubscriptions) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecipesAddRecipeToFavoriteRequest

type RecipesAddRecipeToFavoriteRequest struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID string `param:"id" json:"-"`
}

func (RecipesAddRecipeToFavoriteRequest) MarshalEasyJSON

func (v RecipesAddRecipeToFavoriteRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecipesAddRecipeToFavoriteRequest) MarshalJSON

func (v RecipesAddRecipeToFavoriteRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RecipesAddRecipeToFavoriteRequest) UnmarshalEasyJSON

func (v *RecipesAddRecipeToFavoriteRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecipesAddRecipeToFavoriteRequest) UnmarshalJSON

func (v *RecipesAddRecipeToFavoriteRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecipesAddRecipeToShoppingCartRequest

type RecipesAddRecipeToShoppingCartRequest struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID string `param:"id" json:"-"`
}

func (RecipesAddRecipeToShoppingCartRequest) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecipesAddRecipeToShoppingCartRequest) MarshalJSON

func (v RecipesAddRecipeToShoppingCartRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RecipesAddRecipeToShoppingCartRequest) UnmarshalEasyJSON

func (v *RecipesAddRecipeToShoppingCartRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecipesAddRecipeToShoppingCartRequest) UnmarshalJSON

func (v *RecipesAddRecipeToShoppingCartRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecipesAddedToFavoriteResponse

type RecipesAddedToFavoriteResponse struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID          string `json:"id"`
	Name        string `json:"name"`
	Image       string `json:"image"`
	CookingTime uint32 `json:"cooking_time"`
}

func (RecipesAddedToFavoriteResponse) MarshalEasyJSON

func (v RecipesAddedToFavoriteResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecipesAddedToFavoriteResponse) MarshalJSON

func (v RecipesAddedToFavoriteResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RecipesAddedToFavoriteResponse) UnmarshalEasyJSON

func (v *RecipesAddedToFavoriteResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecipesAddedToFavoriteResponse) UnmarshalJSON

func (v *RecipesAddedToFavoriteResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecipesAddedToShoppingCartResponse

type RecipesAddedToShoppingCartResponse struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID          string `json:"id"`
	Name        string `json:"name"`
	Image       string `json:"image"`
	CookingTime uint32 `json:"cooking_time"`
}

func (RecipesAddedToShoppingCartResponse) MarshalEasyJSON

func (v RecipesAddedToShoppingCartResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecipesAddedToShoppingCartResponse) MarshalJSON

func (v RecipesAddedToShoppingCartResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RecipesAddedToShoppingCartResponse) UnmarshalEasyJSON

func (v *RecipesAddedToShoppingCartResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecipesAddedToShoppingCartResponse) UnmarshalJSON

func (v *RecipesAddedToShoppingCartResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecipesCreateRequest

type RecipesCreateRequest struct {
	Ingredients []IngredientInRecipeCreationDTO `json:"ingredients"`
	Tags        []string                        `json:"tags"`
	Image       string                          `json:"image"`
	Name        string                          `json:"name"`
	Text        string                          `json:"text"`
	CookingTime uint32                          `json:"cooking_time"`
}

func (RecipesCreateRequest) MarshalEasyJSON

func (v RecipesCreateRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecipesCreateRequest) MarshalJSON

func (v RecipesCreateRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RecipesCreateRequest) UnmarshalEasyJSON

func (v *RecipesCreateRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecipesCreateRequest) UnmarshalJSON

func (v *RecipesCreateRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecipesCreateResponse

type RecipesCreateResponse RecipeDTO

type RecipesDeleteByIDRequest

type RecipesDeleteByIDRequest struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID string `param:"id" json:"-"`
}

func (RecipesDeleteByIDRequest) MarshalEasyJSON

func (v RecipesDeleteByIDRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecipesDeleteByIDRequest) MarshalJSON

func (v RecipesDeleteByIDRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RecipesDeleteByIDRequest) UnmarshalEasyJSON

func (v *RecipesDeleteByIDRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecipesDeleteByIDRequest) UnmarshalJSON

func (v *RecipesDeleteByIDRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecipesGetAllRequest

type RecipesGetAllRequest struct {
	Page             int32    `query:"page" json:"-"`
	Limit            int32    `query:"limit" json:"-"`
	IsFavorited      int32    `query:"is_favorited" json:"-"`
	IsInShoppingCart int32    `query:"is_in_shopping_cart" json:"-"`
	Author           string   `query:"author" json:"-"`
	Tags             []string `query:"tags" json:"-"`
}

RecipesGetAllRequest godoc.

TODO: check how to check was value in request or not

func (RecipesGetAllRequest) MarshalEasyJSON

func (v RecipesGetAllRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecipesGetAllRequest) MarshalJSON

func (v RecipesGetAllRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RecipesGetAllRequest) UnmarshalEasyJSON

func (v *RecipesGetAllRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecipesGetAllRequest) UnmarshalJSON

func (v *RecipesGetAllRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecipesGetByIDRequest

type RecipesGetByIDRequest struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID string `param:"id" json:"-"`
}

func (RecipesGetByIDRequest) MarshalEasyJSON

func (v RecipesGetByIDRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecipesGetByIDRequest) MarshalJSON

func (v RecipesGetByIDRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RecipesGetByIDRequest) UnmarshalEasyJSON

func (v *RecipesGetByIDRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecipesGetByIDRequest) UnmarshalJSON

func (v *RecipesGetByIDRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecipesGetManyResponse

type RecipesGetManyResponse struct {
	Count    int32       `json:"count"`
	Next     string      `json:"next"`
	Previous string      `json:"previous"`
	Results  []RecipeDTO `json:"results"`
}

func (RecipesGetManyResponse) MarshalEasyJSON

func (v RecipesGetManyResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecipesGetManyResponse) MarshalJSON

func (v RecipesGetManyResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RecipesGetManyResponse) UnmarshalEasyJSON

func (v *RecipesGetManyResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecipesGetManyResponse) UnmarshalJSON

func (v *RecipesGetManyResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecipesGetOneResponse

type RecipesGetOneResponse RecipeDTO

type RecipesGetSubscribedResponse

type RecipesGetSubscribedResponse struct {
	Count    uint32                      `json:"count"`
	Next     string                      `json:"next"`
	Previous string                      `json:"previous"`
	Results  []UserInSubscriptionsResult `json:"results"`
}

func (RecipesGetSubscribedResponse) MarshalEasyJSON

func (v RecipesGetSubscribedResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecipesGetSubscribedResponse) MarshalJSON

func (v RecipesGetSubscribedResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RecipesGetSubscribedResponse) UnmarshalEasyJSON

func (v *RecipesGetSubscribedResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecipesGetSubscribedResponse) UnmarshalJSON

func (v *RecipesGetSubscribedResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecipesRemoveRecipeFromFavoriteRequest

type RecipesRemoveRecipeFromFavoriteRequest struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID string `param:"id" json:"-"`
}

func (RecipesRemoveRecipeFromFavoriteRequest) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecipesRemoveRecipeFromFavoriteRequest) MarshalJSON

func (v RecipesRemoveRecipeFromFavoriteRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RecipesRemoveRecipeFromFavoriteRequest) UnmarshalEasyJSON

func (v *RecipesRemoveRecipeFromFavoriteRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecipesRemoveRecipeFromFavoriteRequest) UnmarshalJSON

func (v *RecipesRemoveRecipeFromFavoriteRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecipesRemoveRecipeFromShoppingCartRequest

type RecipesRemoveRecipeFromShoppingCartRequest struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID string `param:"id" json:"-"`
}

func (RecipesRemoveRecipeFromShoppingCartRequest) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecipesRemoveRecipeFromShoppingCartRequest) MarshalJSON

MarshalJSON supports json.Marshaler interface

func (*RecipesRemoveRecipeFromShoppingCartRequest) UnmarshalEasyJSON

func (v *RecipesRemoveRecipeFromShoppingCartRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecipesRemoveRecipeFromShoppingCartRequest) UnmarshalJSON

func (v *RecipesRemoveRecipeFromShoppingCartRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecipesUpdateByIDRequest

type RecipesUpdateByIDRequest struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID          string                          `json:"-" param:"id"`
	Ingredients []IngredientInRecipeCreationDTO `json:"ingredients"`
	Tags        []string                        `json:"tags"`
	Image       string                          `json:"image"`
	Name        string                          `json:"name"`
	Text        string                          `json:"text"`
	CookingTime int32                           `json:"cooking_time"`
}

func (RecipesUpdateByIDRequest) MarshalEasyJSON

func (v RecipesUpdateByIDRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecipesUpdateByIDRequest) MarshalJSON

func (v RecipesUpdateByIDRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RecipesUpdateByIDRequest) UnmarshalEasyJSON

func (v *RecipesUpdateByIDRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecipesUpdateByIDRequest) UnmarshalJSON

func (v *RecipesUpdateByIDRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecipesUpdateOneResponse

type RecipesUpdateOneResponse RecipeDTO

type TagDTO

type TagDTO struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID    string `json:"id"`
	Name  string `json:"name"`
	Color string `json:"color"`
	Slug  string `json:"slug"`
}

func (TagDTO) MarshalEasyJSON

func (v TagDTO) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TagDTO) MarshalJSON

func (v TagDTO) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TagDTO) UnmarshalEasyJSON

func (v *TagDTO) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TagDTO) UnmarshalJSON

func (v *TagDTO) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TagsGetByIDRequest

type TagsGetByIDRequest struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID string `param:"id" json:"-"`
}

func (TagsGetByIDRequest) MarshalEasyJSON

func (v TagsGetByIDRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TagsGetByIDRequest) MarshalJSON

func (v TagsGetByIDRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TagsGetByIDRequest) UnmarshalEasyJSON

func (v *TagsGetByIDRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TagsGetByIDRequest) UnmarshalJSON

func (v *TagsGetByIDRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TagsGetManyResponse

type TagsGetManyResponse []TagDTO

type TagsGetOneResponse

type TagsGetOneResponse TagDTO

type TokensLoginRequest

type TokensLoginRequest struct {
	Password string `json:"password"`
	Email    string `json:"email"`
}

func (TokensLoginRequest) MarshalEasyJSON

func (v TokensLoginRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TokensLoginRequest) MarshalJSON

func (v TokensLoginRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TokensLoginRequest) UnmarshalEasyJSON

func (v *TokensLoginRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TokensLoginRequest) UnmarshalJSON

func (v *TokensLoginRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TokensLoginResponse

type TokensLoginResponse struct {
	AuthToken string `json:"auth_token"`
}

func (TokensLoginResponse) MarshalEasyJSON

func (v TokensLoginResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TokensLoginResponse) MarshalJSON

func (v TokensLoginResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TokensLoginResponse) UnmarshalEasyJSON

func (v *TokensLoginResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TokensLoginResponse) UnmarshalJSON

func (v *TokensLoginResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UserInRecipe

type UserInRecipe struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID           string `json:"id"`
	Email        string `json:"email"`
	Username     string `json:"username"`
	FirstName    string `json:"first_name"`
	LastName     string `json:"last_name"`
	IsSubscribed bool   `json:"is_subscribed"`
}

func (UserInRecipe) MarshalEasyJSON

func (v UserInRecipe) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UserInRecipe) MarshalJSON

func (v UserInRecipe) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UserInRecipe) UnmarshalEasyJSON

func (v *UserInRecipe) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UserInRecipe) UnmarshalJSON

func (v *UserInRecipe) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UserInSubscriptions

type UserInSubscriptions struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID           string `json:"id"`
	Email        string `json:"email"`
	Username     string `json:"username"`
	FirstName    string `json:"first_name"`
	LastName     string `json:"last_name"`
	IsSubscribed bool   `json:"is_subscribed"`
}

func (UserInSubscriptions) MarshalEasyJSON

func (v UserInSubscriptions) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UserInSubscriptions) MarshalJSON

func (v UserInSubscriptions) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UserInSubscriptions) UnmarshalEasyJSON

func (v *UserInSubscriptions) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UserInSubscriptions) UnmarshalJSON

func (v *UserInSubscriptions) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UserInSubscriptionsResult

type UserInSubscriptionsResult struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID           string                       `json:"id"`
	Email        string                       `json:"email"`
	Username     string                       `json:"username"`
	FirstName    string                       `json:"first_name"`
	LastName     string                       `json:"last_name"`
	IsSubscribed bool                         `json:"is_subscribed"`
	Recipes      []RecipeInUsersSubscriptions `json:"recipes"`
	RecipesCount uint32                       `json:"recipes_count"`
}

func (UserInSubscriptionsResult) MarshalEasyJSON

func (v UserInSubscriptionsResult) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UserInSubscriptionsResult) MarshalJSON

func (v UserInSubscriptionsResult) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UserInSubscriptionsResult) UnmarshalEasyJSON

func (v *UserInSubscriptionsResult) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UserInSubscriptionsResult) UnmarshalJSON

func (v *UserInSubscriptionsResult) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UserSubscribedResponse

type UserSubscribedResponse UserInSubscriptionsResult

type UsersCreateRequest

type UsersCreateRequest struct {
	Email     string `json:"email"`
	Username  string `json:"username"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Password  string `json:"password"`
}

func (UsersCreateRequest) MarshalEasyJSON

func (v UsersCreateRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UsersCreateRequest) MarshalJSON

func (v UsersCreateRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UsersCreateRequest) UnmarshalEasyJSON

func (v *UsersCreateRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UsersCreateRequest) UnmarshalJSON

func (v *UsersCreateRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UsersCreateResponse

type UsersCreateResponse struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID        string `json:"id"`
	Email     string `json:"email"`
	Username  string `json:"username"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
}

func (UsersCreateResponse) MarshalEasyJSON

func (v UsersCreateResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UsersCreateResponse) MarshalJSON

func (v UsersCreateResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UsersCreateResponse) UnmarshalEasyJSON

func (v *UsersCreateResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UsersCreateResponse) UnmarshalJSON

func (v *UsersCreateResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UsersGetAllRequest

type UsersGetAllRequest struct {
	Page  int32 `json:"-" query:"page"`
	Limit int32 `json:"-" query:"limit"`
}

func (UsersGetAllRequest) MarshalEasyJSON

func (v UsersGetAllRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UsersGetAllRequest) MarshalJSON

func (v UsersGetAllRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UsersGetAllRequest) UnmarshalEasyJSON

func (v *UsersGetAllRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UsersGetAllRequest) UnmarshalJSON

func (v *UsersGetAllRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UsersGetAllResponse

type UsersGetAllResponse struct {
	Count        int32                 `json:"count"`
	NextPage     string                `json:"next"`
	PreviousPage string                `json:"previous"`
	Results      []UserInSubscriptions `json:"results"`
}

func (UsersGetAllResponse) MarshalEasyJSON

func (v UsersGetAllResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UsersGetAllResponse) MarshalJSON

func (v UsersGetAllResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UsersGetAllResponse) UnmarshalEasyJSON

func (v *UsersGetAllResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UsersGetAllResponse) UnmarshalJSON

func (v *UsersGetAllResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UsersGetByIDRequest

type UsersGetByIDRequest struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID string `json:"-" param:"id"`
}

func (UsersGetByIDRequest) MarshalEasyJSON

func (v UsersGetByIDRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UsersGetByIDRequest) MarshalJSON

func (v UsersGetByIDRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UsersGetByIDRequest) UnmarshalEasyJSON

func (v *UsersGetByIDRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UsersGetByIDRequest) UnmarshalJSON

func (v *UsersGetByIDRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UsersGetByIDResponse

type UsersGetByIDResponse struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID           string `json:"id"`
	Email        string `json:"email"`
	Username     string `json:"username"`
	FirstName    string `json:"first_name"`
	LastName     string `json:"last_name"`
	IsSubscribed bool   `json:"is_subscribed"`
}

func (UsersGetByIDResponse) MarshalEasyJSON

func (v UsersGetByIDResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UsersGetByIDResponse) MarshalJSON

func (v UsersGetByIDResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UsersGetByIDResponse) UnmarshalEasyJSON

func (v *UsersGetByIDResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UsersGetByIDResponse) UnmarshalJSON

func (v *UsersGetByIDResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UsersGetMeResponse

type UsersGetMeResponse struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID           string `json:"id"`
	Email        string `json:"email"`
	Username     string `json:"username"`
	FirstName    string `json:"first_name"`
	LastName     string `json:"last_name"`
	IsSubscribed bool   `json:"is_subscribed"`
}

func (UsersGetMeResponse) MarshalEasyJSON

func (v UsersGetMeResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UsersGetMeResponse) MarshalJSON

func (v UsersGetMeResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UsersGetMeResponse) UnmarshalEasyJSON

func (v *UsersGetMeResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UsersGetMeResponse) UnmarshalJSON

func (v *UsersGetMeResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UsersGetSubscriptionsRequest

type UsersGetSubscriptionsRequest struct {
	Page         int32 `json:"-" query:"page"`
	Limit        int32 `json:"-" query:"limit"`
	RecipesLimit int32 `json:"-" query:"recipes_limit"`
}

func (UsersGetSubscriptionsRequest) MarshalEasyJSON

func (v UsersGetSubscriptionsRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UsersGetSubscriptionsRequest) MarshalJSON

func (v UsersGetSubscriptionsRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UsersGetSubscriptionsRequest) UnmarshalEasyJSON

func (v *UsersGetSubscriptionsRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UsersGetSubscriptionsRequest) UnmarshalJSON

func (v *UsersGetSubscriptionsRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UsersSetPasswordRequest

type UsersSetPasswordRequest struct {
	NewPassword     string `json:"new_password"`
	CurrentPassword string `json:"current_password"`
}

func (UsersSetPasswordRequest) MarshalEasyJSON

func (v UsersSetPasswordRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UsersSetPasswordRequest) MarshalJSON

func (v UsersSetPasswordRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UsersSetPasswordRequest) UnmarshalEasyJSON

func (v *UsersSetPasswordRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UsersSetPasswordRequest) UnmarshalJSON

func (v *UsersSetPasswordRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UsersSubscribeRequest

type UsersSubscribeRequest struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID           string `json:"-" param:"id"`
	RecipesLimit int32  `json:"-" query:"recipes_limit"`
}

func (UsersSubscribeRequest) MarshalEasyJSON

func (v UsersSubscribeRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UsersSubscribeRequest) MarshalJSON

func (v UsersSubscribeRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UsersSubscribeRequest) UnmarshalEasyJSON

func (v *UsersSubscribeRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UsersSubscribeRequest) UnmarshalJSON

func (v *UsersSubscribeRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UsersUnsubscribeRequest

type UsersUnsubscribeRequest struct {
	// ID is string.
	//
	// It could be any string, but mostly is UUID v4 string.
	ID string `param:"id" json:"-"`
}

func (UsersUnsubscribeRequest) MarshalEasyJSON

func (v UsersUnsubscribeRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UsersUnsubscribeRequest) MarshalJSON

func (v UsersUnsubscribeRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UsersUnsubscribeRequest) UnmarshalEasyJSON

func (v *UsersUnsubscribeRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UsersUnsubscribeRequest) UnmarshalJSON

func (v *UsersUnsubscribeRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL