front correction id number|null

This commit is contained in:
trochas
2026-01-09 17:49:35 +01:00
parent 7a2b72e0b1
commit aa21d046cf
6 changed files with 29 additions and 24 deletions

View File

@@ -1,23 +1,23 @@
import { Groupe } from "./classes";
export type ActiviteDTO = {
id: number;
id: number|null;
name: string;
theme: string;
duree: number;
dataActivite: string[];
sessionId: number;
sessionId: number|null;
}
export type AdminDTO = {
id: number;
id: number|null;
id_keycloak: string;
name: string;
prenom: string;
}
export type AthleteDTO = {
id:number;
id:number|null;
id_keycloak: string;
name: string;
prenom: string;
@@ -28,7 +28,7 @@ export type AthleteDTO = {
};
export type CoachDTO = {
id: number;
id: number|null;
id_keycloak: string;
name: string;
prenom: string;
@@ -36,14 +36,14 @@ export type CoachDTO = {
};
export type SessionDTO = {
id: number;
id: number|null;
name: string;
isRecurrent: boolean;
creneau: string; // LocalDateTime → ISO string
duree: number;
groupe: Groupe;
coachId: number;
coachId: number|null;
athleteIds: number[];
activiteIds: number[];
};