Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllTables = []interface{}{ &Demo{}, }
Functions ¶
This section is empty.
Types ¶
type Demo ¶
type Demo struct { ID int64 `json:"id" gorm:"column:id;primaryKey"` // 自增主键 UserName string `json:"user_name" gorm:"column:user_name"` // 用户名 CreatedTime time.Time `json:"created_time" gorm:"column:created_time;autoCreateTime"` // 创建时间 UpdatedTime time.Time `json:"updated_time" gorm:"column:updated_time;autoUpdateTime"` // 更新时间 DeletedTime gorm.DeletedAt `json:"-" gorm:"column:deleted_time"` }
func (*Demo) ColumnUserName ¶
Click to show internal directories.
Click to hide internal directories.