Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
Types ¶
type User ¶
type User struct { gorm.Model Name string `gorm:"type:varchar(100)" json:"name"` Age int64 `gorm:"type:bigint(20)" json:"age"` Email string `gorm:"type:varchar(100);unique_index" json:"email"` Address string `gorm:"index:addr" json:"address"` }
func (User) DeleteUser ¶
func (User) UpdateUser ¶
func (User) Validate ¶
func (user User) Validate(v *revel.Validation)
Click to show internal directories.
Click to hide internal directories.