mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 01:34:24 +08:00
exchange rate data source supports requesting multi url
This commit is contained in:
@@ -7,8 +7,8 @@ import (
|
||||
|
||||
// ExchangeRatesDataSource defines the structure of exchange rates data source
|
||||
type ExchangeRatesDataSource interface {
|
||||
// GetRequestUrl returns the data source url
|
||||
GetRequestUrl() string
|
||||
// GetRequestUrl returns the data source urls
|
||||
GetRequestUrls() []string
|
||||
|
||||
// Parse returns the common response entity according to the data source raw response
|
||||
Parse(c *core.Context, content []byte) (*models.LatestExchangeRateResponse, error)
|
||||
|
||||
Reference in New Issue
Block a user