categoryTable

package
v0.0.0-...-cc0f04f Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegister

func NewRegister(storage Storage, l *logg.Logger) handlers.Handler

Types

type CategoryTable

type CategoryTable struct {
	Id           int    `json:"id"`
	CategoryId   int    `json:"category-id"`
	CategoryName string `json:"category-name"`
}

type Storage

type Storage interface {
	CategoryTableAddItems(ctx context.Context, p []CategoryTable) error
	CategoryTableUpdateItem(ctx context.Context, p CategoryTable) error
	CategoryTableDeleteItem(ctx context.Context, id int) error

	CategoryTableFindOne(ctx context.Context, id int) (CategoryTable, error)
	CategoryTableGetAll(ctx context.Context) ([]CategoryTable, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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