Documentation ¶
Index ¶
- func GenerateId() string
- type Entity
- func (e *Entity) CreatedAt() time.Time
- func (e *Entity) CreatedBy() string
- func (e *Entity) Delete(userId string)
- func (e *Entity) DeletedBy() string
- func (e *Entity) DeletedDate() time.Time
- func (e *Entity) Id() string
- func (e *Entity) IsDeleted() bool
- func (e *Entity) IsNew() bool
- func (e *Entity) ModifiedAt() time.Time
- func (e *Entity) ModifiedBy() string
- func (e *Entity) Restore()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateId ¶
func GenerateId() string
Types ¶
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func NewEntityWithId ¶
func (*Entity) DeletedDate ¶
func (*Entity) ModifiedAt ¶
func (*Entity) ModifiedBy ¶
Click to show internal directories.
Click to hide internal directories.