dto

package
v0.0.0-...-954a4eb Latest Latest
Warning

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

Go to latest
Published: Jul 10, 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 UserRequest

type UserRequest struct {
	Name    string `json:"name" validate:"required,min=4"`
	Email   string `json:"email" validate:"required,email"`
	Age     uint64 `json:"age" validate:"gte=18,lte=120"`
	Address string `json:"address" validate:"required,min=10"`
	Phone   string `json:"phone" validate:"required,e164"` // https://pkg.go.dev/github.com/go-playground/validator/v10#hdr-E_164_Phone_Number_String
}

Jump to

Keyboard shortcuts

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