domain

package
v0.0.0-...-71d8152 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AddressRepo addressRepoInterface = &addressRepo{}
)

Functions

func NewAddressRepository

func NewAddressRepository(db *xorm.Engine) addressRepoInterface

Types

type Address

type Address struct {
	ID        int64     `json:"id" xorm:"id autoincr pk"`
	Name      string    `json:"name" xorm:"name"`
	Country   string    `json:"country" xorm:"country"`
	CreatedAt time.Time `json:"created_at" xorm:"created_at"`
	UpdatedAt time.Time `json:"updated_at" xorm:"updated_at"`
}

func (*Address) Validate

func (a *Address) Validate() utils.MessageErr

Jump to

Keyboard shortcuts

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