dto

package
v0.0.0-...-3888536 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegisterUser

type RegisterUser struct {
	// The email of the user.
	// Required: true
	Email string `json:"email" binding:"required,email"`

	// The password of the user.
	// Required: true
	Password string `json:"password" binding:"required,min=8,max=64"`

	// The first name of the user.
	// Required: true
	FirstName string `json:"first_name" binding:"required"`

	// The last name of the user.
	// Required: true
	LastName string `json:"last_name" binding:"required"`

	// The phone number of the user.
	Phone string `json:"phone" binding:"omitempty,e164"`

	// The birth date of the user.
	BirthDate string `json:"birth_date" binding:"omitempty,datetime=2006-01-02"`
}

Jump to

Keyboard shortcuts

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