repo

package
v0.0.0-...-3e36168 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	// contains filtered or unexported fields
}

func InitItemRepo

func InitItemRepo() *Item

func (*Item) Create

func (repo *Item) Create(item *model.Item) (*model.Item, error)

func (*Item) Delete

func (repo *Item) Delete(ID int) error

func (*Item) Get

func (repo *Item) Get(ID int) (*model.Item, error)

func (*Item) GetAll

func (repo *Item) GetAll() ([]*model.Item, error)

func (*Item) Save

func (repo *Item) Save(item *model.Item) (*model.Item, error)

Jump to

Keyboard shortcuts

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