dto

package
v0.0.0-...-de7324e Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserDTO

type CreateUserDTO struct {
	Name  string `json:"name"  validate:"required,min=3,max=32"`
	Email string `json:"email" validate:"required,email"`
	Age   int    `json:"age"   validate:"required"`
}

type UpdateUserDTO

type UpdateUserDTO struct {
	Name  string `json:"name"  validate:"omitempty,min=3,max=32"`
	Email string `json:"email" validate:"omitempty,email"`
	Age   int    `json:"age"   validate:"omitempty"`
}

type UserDTO

type UserDTO struct {
	ID    uint   `json:"id"`
	Name  string `json:"name"  validate:"required,min=3,max=32"`
	Email string `json:"email" validate:"required,email"`
	Age   int    `json:"age"   validate:"required"`
}

Jump to

Keyboard shortcuts

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