mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-21 21:40:49 +02:00

With this change all components, which used data services before, now use abstract classes of service interfaces, mock services extend interface services, CoreModule contains code to inject a needed implementation of some service.
14 lines
481 B
TypeScript
14 lines
481 B
TypeScript
import { Observable } from 'rxjs';
|
|
import { OrdersChart } from './orders-chart';
|
|
import { ProfitChart } from './profit-chart';
|
|
|
|
export interface OrderProfitChartSummary {
|
|
title: string;
|
|
value: number;
|
|
}
|
|
|
|
export abstract class OrdersProfitChartData {
|
|
abstract getOrderProfitChartSummary(): Observable<OrderProfitChartSummary[]>;
|
|
abstract getOrdersChartData(period: string): Observable<OrdersChart>;
|
|
abstract getProfitChartData(period: string): Observable<ProfitChart>;
|
|
}
|