reqdto

package
v0.0.0-...-d6791e1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignRoleToUsersDto

type AssignRoleToUsersDto struct {
	RoleId  uuid.UUID   `body:"roleId" validate:"required"`
	UserIds []uuid.UUID `body:"userIds" validate:"required"`
}

type UserLoginDto

type UserLoginDto struct {
	Email      string `json:"email" validate:"required,email"`
	Password   string `json:"password" validate:"required,gte=5"`
	RememberMe bool   `json:"rememberMe" default:"false"`
}

type UserSignUpDto

type UserSignUpDto struct {
	Email       string            `json:"email" validate:"required,email"`
	Password    string            `json:"password" validate:"required,gte=5"`
	Fullname    string            `json:"fullname" validate:"lte=255"`
	PhoneNumber string            `json:"phoneNumber" validate:"lte=255"`
	Address     model.UserAddress `json:"address" validate:"dive"`
}

type UserUpdateProfileDto

type UserUpdateProfileDto struct {
	Fullname    string                `json:"fullname" validate:"lte=255"`
	PhoneNumber string                `json:"phoneNumber" validate:"lte=255"`
	Address     usermodel.UserAddress `json:"address" validate:"dive"`
}

Jump to

Keyboard shortcuts

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