Documentation
¶
Index ¶
- type CurrencyService
- func (s *CurrencyService) AddCurrency(code string, amount float64) (*model.Currency, error)
- func (s *CurrencyService) DeleteCurrency(id int) error
- func (s *CurrencyService) EditCurrency(id int, code string, amount float64) (*model.Currency, error)
- func (s *CurrencyService) GetAllCurrencies() ([]*model.Currency, error)
- func (s *CurrencyService) GetCurrencyByID(id int) (*model.Currency, error)
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 (*CurrencyService) DeleteCurrency ¶
func (s *CurrencyService) DeleteCurrency(id int) error
func (*CurrencyService) EditCurrency ¶
func (*CurrencyService) GetAllCurrencies ¶
func (s *CurrencyService) GetAllCurrencies() ([]*model.Currency, error)
func (*CurrencyService) GetCurrencyByID ¶
func (s *CurrencyService) GetCurrencyByID(id int) (*model.Currency, error)
Click to show internal directories.
Click to hide internal directories.