dto

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse added in v0.3.4

type APIResponse struct {
	Message string `json:"message"`
	Type    string `json:"type"`
	Code    int    `json:"code"`
}

type Category

type Category struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type DeletePetRequest

type DeletePetRequest struct {
	ID     int    `path:"petId" required:"true"`
	APIKey string `                             header:"api_key"`
}

type Order

type Order struct {
	ID       int       `json:"id"`
	PetID    int       `json:"petId"`
	Quantity int       `json:"quantity"`
	ShipDate time.Time `json:"shipDate"`
	Status   string    `json:"status"   enum:"placed,approved,delivered"`
	Complete bool      `json:"complete"`
}

type Pet

type Pet struct {
	ID        int      `json:"id"`
	Name      string   `json:"name"`
	Type      string   `json:"type"`
	Status    string   `json:"status"    enum:"available,pending,sold"`
	Category  Category `json:"category"`
	Tags      []Tag    `json:"tags"`
	PhotoURLs []string `json:"photoUrls"`
}

type PetUser

type PetUser struct {
	ID         int    `json:"id"`
	Username   string `json:"username"`
	FirstName  string `json:"firstName"`
	LastName   string `json:"lastName"`
	Email      string `json:"email"`
	Password   string `json:"password"`
	Phone      string `json:"phone"`
	UserStatus int    `json:"userStatus" enum:"0,1,2"`
}

type Tag

type Tag struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type UpdatePetWithFormRequest

type UpdatePetWithFormRequest struct {
	ID     int    `path:"petId" required:"true"`
	Name   string `             required:"true" formData:"name"`
	Status string `                             formData:"status" enum:"available,pending,sold"`
}

type UploadImageRequest

type UploadImageRequest struct {
	ID                 int64  `params:"petId" path:"petId"`
	AdditionalMetaData string `                            query:"additionalMetadata"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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