dto

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 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"`
	Password  string `json:"password,omitempty"`
	Phone     string `json:"phone"`
	Email     string `json:"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