Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Doc ¶
type Doc struct {
ID int `db:"id"`
Title string `db:"title"`
CategoryID int `db:"category_id"`
CategoryName string `db:"category_name"`
ProjectID int `db:"project_id"`
ProjectName string `db:"project_name"`
Label string `db:"label"`
Markdown string `db:"markdown"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
type Identity ¶
type Identity struct {
ID int `db:"id" json:"id"`
Name string `db:"name" json:"name"`
Email string `db:"email" json:"email"`
Password string `db:"password" json:"password"`
Salt string `db:"salt" json:"salt"`
Role int `db:"role" json:"role"`
LastLoginIP string `db:"last_login_ip" json:"last_login_ip"`
LastLoginTime time.Time `db:"last_login_time" json:"last_login_time"`
}
Click to show internal directories.
Click to hide internal directories.