types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: CC0-1.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Any

type Any = interface{}

type AnyMap

type AnyMap = map[string]Any

type CreatePokemonInput

type CreatePokemonInput struct {
	ReferenceId uint   `json:"reference_id"`
	TierId      int    `json:"tier_id"`
	Name        string `json:"name"`
	Weight      uint   `json:"weight"`
	Height      uint   `json:"height"`
	ImageUrl    string `json:"image_url"`
	Experience  uint   `json:"experience"`
}

type CreatePokemonTypeInput

type CreatePokemonTypeInput struct {
	ReferenceId uint64 `json:"reference_id"`
	Name        string `json:"name"`
}

type LoginInput

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

type LoginOutput

type LoginOutput struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
}

type NewPokemonInput

type NewPokemonInput struct {
	Name         string `json:"name"`
	Price        int    `json:"price"`
	InitialStock int    `json:"initial_stock"`
	TierId       int    `json:"tier_id"`
}

type NewUserInput

type NewUserInput struct {
	Name            string     `json:"name"`
	Email           string     `json:"email"`
	Phone           string     `json:"phone"`
	Password        string     `json:"password"`
	ConfirmPassword string     `json:"confirm_password"`
	BirthDate       *time.Time `json:"birth_date"`
}

type RegistryPokemonInput

type RegistryPokemonInput struct {
	CreatePokemonInput
	Price        int      `json:"price"`
	InitialStock int      `json:"initial_stock"`
	Types        []string `json:"types"`
}

type UpdateClientOutput

type UpdateClientOutput struct {
	Name  string `json:"name"`
	Email string `json:"email"`
	Phone string `json:"phone"`
}

type UpdatePokemonInput

type UpdatePokemonInput struct {
	Price  *int `json:"price"`
	Stock  *int `json:"stock"`
	TierId *int `json:"tier_id"`
}

type UpdateUserInput

type UpdateUserInput struct {
	Name  string `json:"name"`
	Email string `json:"email"`
	Phone string `json:"phone"`
}

type Where

type Where = map[string]map[string]string

Jump to

Keyboard shortcuts

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