14 lines
492 B
Go
14 lines
492 B
Go
package exchangerates
|
|
|
|
import (
|
|
"github.com/mayswind/ezbookkeeping/pkg/core"
|
|
"github.com/mayswind/ezbookkeeping/pkg/models"
|
|
"github.com/mayswind/ezbookkeeping/pkg/settings"
|
|
)
|
|
|
|
// ExchangeRatesDataSource defines the structure of exchange rates data source
|
|
type ExchangeRatesDataSource interface {
|
|
// GetLatestExchangeRates returns the common response entities
|
|
GetLatestExchangeRates(c core.Context, uid int64, currentConfig *settings.Config) (*models.LatestExchangeRateResponse, error)
|
|
}
|