handler

package
v0.0.0-...-5be9a3a Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePetHanler

func CreatePetHanler(ctx *gin.Context)

func DeletePetHanler

func DeletePetHanler(ctx *gin.Context)

func ListPetHanler

func ListPetHanler(ctx *gin.Context)

func SetupHandler

func SetupHandler()

func ShowPetHanler

func ShowPetHanler(ctx *gin.Context)

func UpdatePetHanler

func UpdatePetHanler(ctx *gin.Context)

Types

type CreatePetRequest

type CreatePetRequest struct {
	Name     string `json:"name"`
	Breed    string `json:"breed"`
	Birthday string `json:"birthday"`
	Sex      string `json:"sex"`
	OwnerID  uint   `json:"ownerid"`
}

func (*CreatePetRequest) Validate

func (r *CreatePetRequest) Validate() error

Jump to

Keyboard shortcuts

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