package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Apr 25, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type LoginParams struct {
Username string `json:"username" form:"username"`
Password string `json:"password" form:"password"`
}
type Pet struct {
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Breed string `json:"breed,omitempty"`
Gender string `json:"gender"`
Photo string `json:"photo"`
AdoptionStatus string `json:"adoptionStatus"`
ShelterID string `json:"shelterID,omitempty"`
}
type PetParams struct {
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Breed string `json:"breed"`
Gender string `json:"gender"`
ShelterID string `json:"shelterID"`
AdoptionStatus string `json:"adoptionStatus"`
}
type RegisterParams struct {
FirstName string `json:"firstName" form:"firstName"`
LastName string `json:"lastName" form:"lastName"`
Username string `json:"username" form:"username"`
Email string `json:"email" form:"email"`
Password string `json:"password" form:"password"`
}
type Shelter struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Website string `json:"website"`
Location string `json:"location"`
ContactInformation string `json:"contactInformation"`
Logo string `json:"logo"`
NumberOfPets int64 `json:"numberOfPets"`
OwnerID string `json:"ownerID"`
}
type ShelterParams struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Website string `json:"website"`
Location string `json:"location"`
ContactInformation string `json:"contactInformation"`
OwnerID string `json:"-"`
}
type ShelterPetParams struct {
ShelterID string `json:"shelterID"`
AdoptionStatus string `json:"adoptionStatus"`
}
type User struct {
ID string `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Bio string `json:"bio"`
Location string `json:"location"`
Avatar string `json:"avatar"`
IsActive bool `json:"isActive"`
IsAdmin bool `json:"isAdmin"`
}
type UserParams struct {
ID string `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Bio string `json:"bio"`
Location string `json:"location"`
Avatar string `json:"avatar"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.