Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseModel ¶
type BaseModel struct { ID uint64 "gorm:column:id;primaryKey;autoIncrement;not null" CreatedAt time.Time `gorm:"column:created_at;index:created_at;not null;default:CURRENT_TIMESTAMP"` UpdatedAt time.Time `gorm:"column:updated_at;index:updated_at;not null;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"` }
func (BaseModel) CreatedAtDate ¶
CreatedAtDate 获取模型创建时间
func (BaseModel) UpdatedAtDate ¶
UpdatedAtDate 获取模型更新时间
Click to show internal directories.
Click to hide internal directories.