presenter

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

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

Go to latest
Published: Feb 4, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountPresenter

type AccountPresenter struct {
}

func (*AccountPresenter) ToViewModel

func (a *AccountPresenter) ToViewModel(ac *entity.Account) *AccountViewModel

func (*AccountPresenter) ToViewModels

func (a *AccountPresenter) ToViewModels(ac []*entity.Account) []*AccountViewModel

type AccountViewModel

type AccountViewModel struct {
	UUID      string `json:"uuid"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
}

Jump to

Keyboard shortcuts

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