feat(frontend): polish responsable workspace
This commit is contained in:
@@ -29,6 +29,16 @@ class ResponsableService {
|
||||
static Future<List<Map<String, dynamic>>> historique() =>
|
||||
_liste("/responsable/historique");
|
||||
|
||||
static Future<int> marquerNotificationsLues() async {
|
||||
final reponse = await ApiClient.patch(
|
||||
"/responsable/notifications/lu-toutes",
|
||||
{},
|
||||
utilisateurEmail: _email,
|
||||
);
|
||||
final data = Map<String, dynamic>.from(reponse["data"] as Map);
|
||||
return data["count"] as int;
|
||||
}
|
||||
|
||||
static Future<Map<String, dynamic>> changerStatutAnomalie(
|
||||
int id,
|
||||
String statut,
|
||||
|
||||
Reference in New Issue
Block a user