dto

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 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 RefreshToken

type RefreshToken struct {
	Token string `json:"token" validate:"required,lte=255"`
}

RefreshToken struct to refresh JWT token.

type SignIn

type SignIn struct {
	Username string `json:"username" validate:"required,email,lte=255"`
	Password string `json:"password" validate:"required,gte=6"`
}

SignIn struct to describe sign in user

type SignUp

type SignUp struct {
	Email    string `json:"email" example:"john@jivecode.com" validate:"required,email,lte=255"`
	Password string `json:"password" example:"M1PassW@s" validate:"required,gte=6"`
	Fullname string `json:"fullname" example:"John Doe" validate:"required,lte=255"`
	Phone    string `json:"phone" example:"0989831911" validate:"required,lte=20"`
	Status   string `json:"status" example:"pending"  validate:"omitempty"`
	Avatar   string `json:"avatar" example:"https://i.pravatar.cc/32"  validate:"omitempty"`
}

SignUp struct to describe register a new user.

Jump to

Keyboard shortcuts

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