Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connection ¶
Types ¶
type Note ¶
type Note struct { gorm.Model `json:"-"` Title string Content string `gorm:"type:text"` PreView string `gorm:"type:varchar(255)"` AuthorID uint }
func (*Note) CreateNote ¶
type User ¶
type User struct { gorm.Model `json:"-"` Email string `gorm:"type:varchar(64);unique_index;not null"` Name string `gorm:"type:varchar(64);unique;not null"` Password string `gorm:"type:varchar(64);not null"` }
func (*User) CheckToken ¶
func (*User) CreateToken ¶
func (*User) CreateUser ¶
func (*User) GetUserNameById ¶
func (*User) Verification ¶
Click to show internal directories.
Click to hide internal directories.