mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-27 10:24:08 +01:00
refactor(@core): refactor data services for better integration (#1997)
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.
This commit is contained in:
parent
f17aa32c6d
commit
cac36f0717
67 changed files with 389 additions and 201 deletions
12
src/app/@core/data/user-activity.ts
Normal file
12
src/app/@core/data/user-activity.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { Observable } from 'rxjs';
|
||||
|
||||
export interface UserActive {
|
||||
date: string;
|
||||
pagesVisitCount: number;
|
||||
deltaUp: boolean;
|
||||
newVisits: number;
|
||||
}
|
||||
|
||||
export abstract class UserActivityData {
|
||||
abstract getUserActivityData(period: string): Observable<UserActive[]>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue