dto

package
v0.0.0-...-cf22472 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 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 CreatePet

type CreatePet struct {
	Name     string `json:"name"`
	PhotoURL string `json:"photoURL"`
}

func (*CreatePet) Validate

func (p *CreatePet) Validate(ctx context.Context) error

type Pet

type Pet struct {
	ID       int64  `json:"id"`
	Name     string `json:"name"`
	PhotoURL string `json:"photoURL"`
	Sold     bool   `json:"sold"`
}

Jump to

Keyboard shortcuts

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