Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditEntity ¶
type AuditEntity struct { base.Entity CreatedBy uuid.UUID `json:"createdBy" gorm:"comment:创建人"` //创建人id UpdatedBy uuid.UUID `json:"updatedBy" gorm:"comment:更新人"` //更新人id }
func (*AuditEntity) BeforeCreate ¶
func (u *AuditEntity) BeforeCreate(tx *gorm.DB) (err error)
func (*AuditEntity) BeforeDelete ¶
func (u *AuditEntity) BeforeDelete(tx *gorm.DB) (err error)
func (*AuditEntity) BeforeSave ¶
func (u *AuditEntity) BeforeSave(tx *gorm.DB) (err error)
func (*AuditEntity) BeforeUpdate ¶
func (u *AuditEntity) BeforeUpdate(tx *gorm.DB) (err error)
Click to show internal directories.
Click to hide internal directories.