Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { ID uuid.UUID `gorm:"type:uuid;primary_key;unique_index"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time LastModifiedBy string }
Base gorm base
func (*Base) BeforeCreate ¶
BeforeCreate will set a UUID rather than numeric ID.
func (*Base) MarshalBinary ¶
MarshalBinary for redis
func (*Base) UnmarshalBinary ¶
UnmarshalBinary for redis
Click to show internal directories.
Click to hide internal directories.