model

package
v0.2.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL