dto

package
v0.0.0-...-a371a4b Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 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 LoginDTO

type LoginDTO struct {
	Email    string `json:"email" binding:"required" validate:"required,email"`
	Password string `json:"password" binding:"required" validate:"required,max=20,min=6"`
}

type RegisterDTO

type RegisterDTO struct {
	Firstname string `json:"firstname" binding:"required" validate:"required"`
	Lastname  string `json:"lastname" binding:"required" validate:"required"`
	Email     string `json:"email" binding:"required" validate:"required"`
	Username  string `json:"username" binding:"required" validate:"required"`
	Password  string `json:"password" binding:"required" validate:"required,max=64,min=6"`
}

Jump to

Keyboard shortcuts

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