Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alias ¶
type Alias struct {
ID uint `orm:"column(id)" json:"id"`
Source string
Destination string
UpdatedAt time.Time `orm:"auto_now" json:"updatedAt"`
CreatedAt time.Time `orm:"auto_now_add" json:"createdAt"`
Domain *Domain `orm:"rel(fk)"`
}
Alias alias
type Domain ¶
type Domain struct {
ID uint `orm:"column(id)" json:"id"`
Name string
UpdatedAt time.Time `orm:"auto_now" json:"updatedAt"`
CreatedAt time.Time `orm:"auto_now_add" json:"createdAt"`
}
Domain domain
type User ¶
type User struct {
ID uint `orm:"column(id)" json:"id"`
FullName string
Email string
Password string
Enable bool
UpdatedAt time.Time `orm:"auto_now" json:"updatedAt"`
CreatedAt time.Time `orm:"auto_now_add" json:"createdAt"`
Domain *Domain `orm:"rel(fk)"`
}
User user
func (*User) ChkPassword ¶
ChkPassword check password
func (*User) SetPassword ¶
SetPassword set password (SSHA512-CRYPT)
Click to show internal directories.
Click to hide internal directories.