service

package
v0.0.0-...-b04b404 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrencyService

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

func NewCurrencyService

func NewCurrencyService() *CurrencyService

func (*CurrencyService) AddCurrency

func (s *CurrencyService) AddCurrency(code string, amount float64) (*model.Currency, error)

func (*CurrencyService) DeleteCurrency

func (s *CurrencyService) DeleteCurrency(id int) error

func (*CurrencyService) EditCurrency

func (s *CurrencyService) EditCurrency(id int, code string, amount float64) (*model.Currency, error)

func (*CurrencyService) GetAllCurrencies

func (s *CurrencyService) GetAllCurrencies() ([]*model.Currency, error)

func (*CurrencyService) GetCurrencyByID

func (s *CurrencyService) GetCurrencyByID(id int) (*model.Currency, error)

Jump to

Keyboard shortcuts

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