category

package
v0.7.28 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 4

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

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) Create

func (cat *CategoryDefinition) Create(db *database.Handler, _ uuid.UUID) (uuid.UUID, error)

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 (*CategoryDefinition) UpdateStatus

func (m *CategoryDefinition) UpdateStatus(db database.Handler, status entity.EntityStatus) error

Jump to

Keyboard shortcuts

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