Documentation ¶
Overview ¶
* * @Author: TheLife * @Date: 2020-4-24 1:35 下午
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeFieldsModel ¶
type TimeFieldsModel struct { TimeCreated uint `` /* 133-byte string literal not displayed */ TimeUpdated uint `` /* 133-byte string literal not displayed */ TimeDeleted uint `gorm:"column:time_deleted" json:"-" comment:"删除时间" columnType:"bigint(13) unsigned" dataType:"bigint" columnKey:""` }
func (*TimeFieldsModel) HookDeleteCallback ¶
func (*TimeFieldsModel) HookDeleteCallback(scope *gorm.Scope)
删除钩子在删除之前
func (*TimeFieldsModel) HookUpdateTimeStampForCreateCallback ¶
func (*TimeFieldsModel) HookUpdateTimeStampForCreateCallback(scope *gorm.Scope)
新建钩子在持久化之前
func (*TimeFieldsModel) HookUpdateTimeStampForUpdateCallback ¶
func (*TimeFieldsModel) HookUpdateTimeStampForUpdateCallback(scope *gorm.Scope)
更新钩子在持久化之前
Click to show internal directories.
Click to hide internal directories.