gqtypes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginParams

type LoginParams struct {
	Username string `json:"username" form:"username"`
	Password string `json:"password" form:"password"`
}

type Pet

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

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

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

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"`
	NumberOfPets       int64  `json:"numberOfPets"`
	OwnerID            string `json:"ownerID"`
}

type ShelterParams

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 added in v0.0.2

type ShelterPetParams struct {
	ShelterID      string `json:"shelterID"`
	AdoptionStatus string `json:"adoptionStatus"`
}

type User

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 added in v0.0.2

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"`
}

Jump to

Keyboard shortcuts

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