dto

package
v0.0.0-...-9cb16bd Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.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 SignInReqDTO

type SignInReqDTO struct {
	// The login of the user. It must be alphanumeric and have a length between 3 and 100.
	// required: true
	// example: john_doe
	Login string `json:"login" validate:"required,min=3,max=100,alphanum"`

	// The password of the user. It must have a length between 8 and 32.
	// required: true
	// example: securePassword123
	Password string `json:"password" validate:"required,min=8,max=32"`
}

SignInReqDTO represents the required fields for a user to sign in. swagger:model SignInReqDTO

type SignupReqDTO

type SignupReqDTO struct {
	// The email address of the user. It must be a valid email format.
	// required: true
	// example: john.doe@example.com
	Email string `json:"email" validate:"required,email"`

	// The desired username for the user. It must be alphanumeric and have a length between 3 and 20.
	// required: true
	// example: john_doe
	Username string `json:"username" validate:"required,min=3,max=20,alphanum"`

	// The desired password for the user. It must have a length between 8 and 32.
	// required: true
	// example: securePassword123
	Password string `json:"password" validate:"required,min=8,max=32"`
}

SignupReqDTO represents the required fields for a user to sign up. swagger:model SignupReqDTO

Jump to

Keyboard shortcuts

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