Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEntity ¶
type BaseEntity struct {
ID string `json:"id"` // Unique identifier for the entity
CreatedAt time.Time `json:"created_at"` // Timestamp when the entity was created
UpdatedAt time.Time `json:"updated_at"` // Timestamp when the entity was last updated
}
BaseEntity provides common fields for all entities. It can be embedded into concrete business entities.
func (*BaseEntity) GetID ¶
func (b *BaseEntity) GetID() string
GetID returns the ID of the BaseEntity.
func (*BaseEntity) SetID ¶
func (b *BaseEntity) SetID(id string)
SetID sets the ID of the BaseEntity.
Click to show internal directories.
Click to hide internal directories.