mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
feat(server): add application layer to exchange rate service
This commit is contained in:
@@ -1,16 +1,7 @@
|
||||
import { Service, Inject } from 'typedi';
|
||||
import { IExchangeRatesService } from '@/interfaces';
|
||||
import { Service } from 'typedi';
|
||||
import { ExchangeRate } from '@/lib/ExchangeRate/ExchangeRate';
|
||||
import { ExchangeRateServiceType } from '@/lib/ExchangeRate/types';
|
||||
interface ExchangeRateLatestDTO {
|
||||
toCurrency: string;
|
||||
}
|
||||
|
||||
interface EchangeRateLatestPOJO {
|
||||
baseCurrency: string;
|
||||
toCurrency: string;
|
||||
exchangeRate: number;
|
||||
}
|
||||
import { EchangeRateLatestPOJO, ExchangeRateLatestDTO } from '@/interfaces';
|
||||
|
||||
@Service()
|
||||
export class ExchangeRatesService {
|
||||
|
||||
Reference in New Issue
Block a user