dto

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountDTO

type AccountDTO struct {
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Username  string `json:"username"`
	Phone     string `json:"phone"`
	Email     string `json:"email" validate:"required,email"`
	Enabled   bool   `json:"enabled"`
	Gender    string `json:"gender"`
}

func NewAccountDTO

func NewAccountDTO(account *model.Account) *AccountDTO

func (*AccountDTO) ToAccountModel

func (r *AccountDTO) ToAccountModel() *model.Account

Jump to

Keyboard shortcuts

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