usecase

package
v0.0.0-...-5c9c1d6 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type UseCase

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

func (*UseCase) Create

func (uc *UseCase) Create(order models.Order) (models.Order, error)

Create creates a new order in the database from supplied order argument

func (*UseCase) Delete

func (uc *UseCase) Delete(id string) error

Delete deletes an order from the database using the supplied id

func (*UseCase) Get

func (uc *UseCase) Get(id string) (models.Order, error)

Get retrieves an order from the database using the supplied id

func (*UseCase) Update

func (uc *UseCase) Update(updateOrder models.Order) (models.Order, error)

Update updates an order in the database using the supplied order argument

Jump to

Keyboard shortcuts

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