model

package
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 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 Entity added in v0.2.19

type Entity 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
}

Entity provides common fields for all entities. It can be embedded into concrete business entities.

func (*Entity) GetID added in v0.2.19

func (b *Entity) GetID() string

GetID returns the ID of the Entity.

func (*Entity) SetID added in v0.2.19

func (b *Entity) SetID(id string)

SetID sets the ID of the Entity.

Jump to

Keyboard shortcuts

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