package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Apr 19, 2024
License: CC0-1.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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 struct {
ReferenceId uint64 `json:"reference_id"`
Name string `json:"name"`
}
type LoginInput struct {
Email string `json:"email"`
Password string `json:"password"`
}
type LoginOutput struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
}
type NewPokemonInput struct {
Name string `json:"name"`
Price int `json:"price"`
InitialStock int `json:"initial_stock"`
TierId int `json:"tier_id"`
}
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 struct {
CreatePokemonInput
Price int `json:"price"`
InitialStock int `json:"initial_stock"`
Types []string `json:"types"`
}
type UpdateClientOutput struct {
Name string `json:"name"`
Email string `json:"email"`
Phone string `json:"phone"`
}
type UpdatePokemonInput struct {
Price *int `json:"price"`
Stock *int `json:"stock"`
TierId *int `json:"tier_id"`
}
type UpdateUserInput struct {
Name string `json:"name"`
Email string `json:"email"`
Phone string `json:"phone"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.