new payment methods service
This commit is contained in:
@@ -21,7 +21,7 @@ type Store struct {
|
||||
txFactory transaction.Factory
|
||||
|
||||
rates storage.RatesStore
|
||||
quotes storage.QuotesStore
|
||||
quotes quotestorage.QuotesStore
|
||||
pairs storage.PairStore
|
||||
currencies storage.CurrencyStore
|
||||
}
|
||||
@@ -92,7 +92,7 @@ func (s *Store) Rates() storage.RatesStore {
|
||||
return s.rates
|
||||
}
|
||||
|
||||
func (s *Store) Quotes() storage.QuotesStore {
|
||||
func (s *Store) Quotes() quotestorage.QuotesStore {
|
||||
return s.quotes
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ type quotesStore struct {
|
||||
txFactory transaction.Factory
|
||||
}
|
||||
|
||||
func NewQuotes(logger mlogger.Logger, db *mongo.Database, txFactory transaction.Factory) (storage.QuotesStore, error) {
|
||||
func NewQuotes(logger mlogger.Logger, db *mongo.Database, txFactory transaction.Factory) (quotestorage.QuotesStore, error) {
|
||||
repo := repository.CreateMongoRepository(db, model.QuotesCollection)
|
||||
indexes := []*ri.Definition{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user