applicationModels

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientApplicationModel

type ClientApplicationModel struct {
	DbClient
	Passport PassportApplicationModel
	Jobs     []JobApplicationModel
}

func (*ClientApplicationModel) GetBirthDate

func (c *ClientApplicationModel) GetBirthDate() string

func (*ClientApplicationModel) GetChildren

func (c *ClientApplicationModel) GetChildren() int

func (*ClientApplicationModel) GetClient

func (c *ClientApplicationModel) GetClient(id int, db *sqlx.DB) error

func (*ClientApplicationModel) GetFirstName

func (c *ClientApplicationModel) GetFirstName() string

func (*ClientApplicationModel) GetId

func (c *ClientApplicationModel) GetId() int

func (*ClientApplicationModel) GetJobs

func (*ClientApplicationModel) GetLastName

func (c *ClientApplicationModel) GetLastName() string

func (*ClientApplicationModel) GetMaritalStatus

func (c *ClientApplicationModel) GetMaritalStatus() string

func (*ClientApplicationModel) GetPassport

func (*ClientApplicationModel) GetSex

func (c *ClientApplicationModel) GetSex() string

func (*ClientApplicationModel) Hydrate

func (*ClientApplicationModel) SaveClient

func (c *ClientApplicationModel) SaveClient(tx *sql.Tx) (int, error)

func (*ClientApplicationModel) UpdateClient

type DbClient

type DbClient struct {
	Id            int    `db:"id"`
	FirstName     string `db:"first_name"`
	LastName      string `db:"last_name"`
	BirthDate     string `db:"birth_date"`
	Sex           string `db:"sex"`
	MaritalStatus string `db:"marital_status"`
	Children      int    `db:"children"`
}

type JobApplicationModel

type JobApplicationModel struct {
	Id       int    `db:"id"`
	Name     string `db:"name"`
	Wage     int    `db:"wage"`
	ClientId int    `db:"client_id"`
}

func (*JobApplicationModel) DeleteJob

func (j *JobApplicationModel) DeleteJob(tx *sql.Tx) error

func (*JobApplicationModel) GetName

func (j *JobApplicationModel) GetName() string

func (*JobApplicationModel) GetWage

func (j *JobApplicationModel) GetWage() int

func (*JobApplicationModel) Hydrate

func (*JobApplicationModel) SaveJob

func (j *JobApplicationModel) SaveJob(tx *sql.Tx) error

type PassportApplicationModel

type PassportApplicationModel struct {
	Id       int `db:"id"`
	Series   int `db:"series"`
	Number   int `db:"number"`
	ClientId int `db:"client_id"`
}

func (*PassportApplicationModel) GetNumber

func (p *PassportApplicationModel) GetNumber() int

func (*PassportApplicationModel) GetPassport

func (p *PassportApplicationModel) GetPassport(clientId int, db *sqlx.DB) error

func (*PassportApplicationModel) GetSeries

func (p *PassportApplicationModel) GetSeries() int

func (*PassportApplicationModel) Hydrate

func (*PassportApplicationModel) SavePassport

func (p *PassportApplicationModel) SavePassport(tx *sql.Tx) error

func (*PassportApplicationModel) UpdatePassport

Jump to

Keyboard shortcuts

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