Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseModel ¶
type BaseModel struct { ID uint `gorm:"primarykey" json:"id"` // 数据ID CreatedAt time.Time `gorm:"type:datetime;" json:"created_at"` // 数据创建时间 UpdatedAt time.Time `gorm:"type:datetime;" json:"updated_at"` // 数据更新时间 DeletedAt *gorm.DeletedAt `gorm:"type:datetime;index;" json:"-"` // 数据删除时间 }
数据模型基本字段
Click to show internal directories.
Click to hide internal directories.