service

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateItem

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

func InitCreateItemService

func InitCreateItemService() *CreateItem

func (*CreateItem) Create

func (srv *CreateItem) Create(itemBody body.CreateItem) (*model.Item, error)

func (*CreateItem) Validate

func (srv *CreateItem) Validate(body body.CreateItem) error

type DeleteItem

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

func InitDeleteItemService

func InitDeleteItemService() *DeleteItem

func (*DeleteItem) Delete

func (srv *DeleteItem) Delete(ID int) error

type GetItem

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

func InitGetItemService

func InitGetItemService() *GetItem

func (*GetItem) Get

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

type GetItems

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

func InitGetItemsService

func InitGetItemsService() *GetItems

func (*GetItems) GetAll

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

type UpdateItem

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

func InitUpdateItemService

func InitUpdateItemService() *UpdateItem

func (*UpdateItem) Update

func (srv *UpdateItem) Update(itemId int, itemBody body.UpdateItem) (*model.Item, error)

func (*UpdateItem) Validate

func (srv *UpdateItem) Validate(body body.UpdateItem) error

Jump to

Keyboard shortcuts

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