Documentation ¶
Index ¶
- type GormBase
- func (b *GormBase) BeforeCreate(tx *gorm.DB) (err error)
- func (b *GormBase) BeforeDelete(tx *gorm.DB) (err error)
- func (b *GormBase) BeforeUpdate(tx *gorm.DB) (err error)
- func (b *GormBase) SetCreatedAt(time time.Time)
- func (b *GormBase) SetCreatedBy(user string)
- func (b *GormBase) SetDeletedAt(time time.Time)
- func (b *GormBase) SetDeletedBy(user string)
- func (b *GormBase) SetSyncedAt(time time.Time)
- func (b *GormBase) SetUpdatedAt(time time.Time)
- func (b *GormBase) SetUpdatedBy(user string)
- type GormModel
- type MongoBase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormBase ¶
type GormBase struct { Id string `gorm:"type:string;primaryKey;autoIncrement:false"` CreatedAt sql.NullTime UpdatedAt sql.NullTime SyncedAt sql.NullTime CreatedBy sql.NullString UpdatedBy sql.NullString DeletedAt gorm.DeletedAt DeletedBy sql.NullString Env *configs.Env `gorm:"-:all"` }
func (*GormBase) SetCreatedAt ¶
func (*GormBase) SetCreatedBy ¶
func (*GormBase) SetDeletedAt ¶
func (*GormBase) SetDeletedBy ¶
func (*GormBase) SetSyncedAt ¶
func (*GormBase) SetUpdatedAt ¶
func (*GormBase) SetUpdatedBy ¶
Click to show internal directories.
Click to hide internal directories.