feat: création branche singletons - début refactorisation

- Sauvegarde des fichiers critiques
- Préparation transformation ApiService en singleton
- Préparation création CurrentUserService et CurrentAmicaleService
- Objectif: renommer Box users -> user
This commit is contained in:
d6soft
2025-06-05 15:22:29 +02:00
parent ef83b258d9
commit 95e9af23e2
41 changed files with 68682 additions and 65048 deletions

File diff suppressed because one or more lines are too long

View File

@@ -24,13 +24,14 @@ class MembreModelAdapter extends TypeAdapter<MembreModel> {
name: fields[8] as String,
username: fields[9] as String,
email: fields[10] as String,
fkEntite: fields[11] as int,
);
}
@override
void write(BinaryWriter writer, MembreModel obj) {
writer
..writeByte(11)
..writeByte(12)
..writeByte(0)
..write(obj.id)
..writeByte(1)
@@ -52,7 +53,9 @@ class MembreModelAdapter extends TypeAdapter<MembreModel> {
..writeByte(9)
..write(obj.username)
..writeByte(10)
..write(obj.email);
..write(obj.email)
..writeByte(11)
..write(obj.fkEntite);
}
@override