Ajout du cache sur les appels pour les stats
Et appel à l'API sur l'affichage de l'onglet
This commit is contained in:
13
Front/skydivelogs-app/src/models/cache-api-key.enum.ts
Normal file
13
Front/skydivelogs-app/src/models/cache-api-key.enum.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export enum CacheApiKey {
|
||||
JumpType,
|
||||
Aircraft,
|
||||
Gear,
|
||||
Dropzone,
|
||||
SimpleSummary,
|
||||
StatsByDz,
|
||||
StatsByAircraft,
|
||||
StatsByJumpType,
|
||||
StatsByGear,
|
||||
StatsOfLastYear,
|
||||
StatsOfLastMonth
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
export enum RefData {
|
||||
JumpType,
|
||||
Aircraft,
|
||||
Gear,
|
||||
Dropzone
|
||||
}
|
||||
@@ -1,16 +1,6 @@
|
||||
import { Observable } from 'rxjs';
|
||||
import { JumpResp } from './jump';
|
||||
|
||||
export enum StatType {
|
||||
ForLastMonth = 1,
|
||||
ForLastYear = 2,
|
||||
ByDz = 3,
|
||||
ByAircraft = 4,
|
||||
ByGear = 5,
|
||||
ByJumpType = 6,
|
||||
ByYear = 7,
|
||||
}
|
||||
|
||||
export class StatsResp {
|
||||
public simpleSummary: Observable<SimpleSummary>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user