entities

package
v0.0.0-...-2f4c98e Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserReq

type UserReq struct {
	ID        string    `json:"-"`
	Name      string    `json:"name" validate:"required,min=3,max=50"`
	Lastname  string    `json:"lastname" validate:"required,min=3,max=50"`
	Age       int32     `json:"age" validate:"required,gt=0,lt=99"`
	Email     string    `json:"email" validate:"required,email"`
	CreatedAt time.Time `json:"-"`
	UpdatedAt time.Time `json:"-"`
}

func (*UserReq) ToDB

func (u *UserReq) ToDB() (*models.UserDB, error)

Jump to

Keyboard shortcuts

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