Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AddressRepo addressRepoInterface = &addressRepo{}
)
Functions ¶
func NewAddressRepository ¶
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
Click to show internal directories.
Click to hide internal directories.