Documentation ¶
Overview ¶
Package category provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
The file implements the Entity interface on the CategoryDefinition struct.
Index ¶
- Constants
- type CategoryDefinition
- func (cat *CategoryDefinition) Create(db *database.Handler, _ uuid.UUID) (uuid.UUID, error)
- func (cat *CategoryDefinition) GenerateID() (uuid.UUID, error)
- func (cat *CategoryDefinition) GetEntityDetail() string
- func (cat CategoryDefinition) GetID() uuid.UUID
- func (c CategoryDefinition) TableName() string
- func (cat CategoryDefinition) Type() entity.EntityType
- func (m *CategoryDefinition) UpdateStatus(db database.Handler, status entity.EntityStatus) error
Constants ¶
View Source
const DefaultCategory = "Uncategorized"
"Uncategorized" is assigned when Category is empty in the component definitions.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryDefinition ¶
type CategoryDefinition struct { Id uuid.UUID `json:"-"` Name string `json:"name" gorm:"name"` Metadata map[string]interface{} `json:"metadata,omitempty" yaml:"metadata,omitempty" gorm:"type:bytes;serializer:json"` }
func (*CategoryDefinition) GenerateID ¶
func (cat *CategoryDefinition) GenerateID() (uuid.UUID, error)
func (*CategoryDefinition) GetEntityDetail ¶
func (cat *CategoryDefinition) GetEntityDetail() string
func (CategoryDefinition) GetID ¶
func (cat CategoryDefinition) GetID() uuid.UUID
func (CategoryDefinition) TableName ¶
func (c CategoryDefinition) TableName() string
func (CategoryDefinition) Type ¶
func (cat CategoryDefinition) Type() entity.EntityType
func (*CategoryDefinition) UpdateStatus ¶
func (m *CategoryDefinition) UpdateStatus(db database.Handler, status entity.EntityStatus) error
Click to show internal directories.
Click to hide internal directories.