Domain

package
v0.0.0-...-33e2c4a Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientDomainModelInterface

type ClientDomainModelInterface interface {
	GetFirstName() string
	GetLastName() string
	GetBirthDate() string
	GetSex() string
	GetMaritalStatus() string
	GetChildren() int
	GetPassport() PassportDomainModelInterface
	GetJobs() []JobDomainModelInterface
}

type ClientRepositoryInterface

type ClientRepositoryInterface interface {
	GetClient(id int) (ClientDomainModelInterface, error)
	SetClient(model ClientDomainModelInterface) (int, error)
	ChangeClient(id int, model ClientDomainModelInterface) error
}

type ClientServiceInterface

type ClientServiceInterface interface {
	Add(model ClientDomainModelInterface) (IdInterface, error)
	Get(id IdInterface) (ClientDomainModelInterface, error)
	Update(id IdInterface, model ClientDomainModelInterface) error
}

type IdInterface

type IdInterface interface {
	Get() int
	Set(id int)
}

type JobDomainModelInterface

type JobDomainModelInterface interface {
	GetName() string
	GetWage() int
}

type MessageInterface

type MessageInterface interface {
	MarshalJSON() (b []byte, e error)
}

type PassportDomainModelInterface

type PassportDomainModelInterface interface {
	GetSeries() int
	GetNumber() int
}

type ValidationInterface

type ValidationInterface interface {
	AddMessage(msg MessageInterface)
	GetMessages() []MessageInterface
	SetMessage(msg string)
	MarshalJSON() (b []byte, e error)
	Empty() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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