Update Saqel Platform: 2026-09-10 12:26:22

This commit is contained in:
Hamza-Ayed
2026-09-10 12:32:01 +03:00
parent 09dfd665b5
commit 960d4c8604
28 changed files with 690 additions and 2864 deletions
@@ -123,10 +123,9 @@ class DirectorateApiService {
return _decode(response);
}
static Future<Map<String, dynamic>> fetchSchoolDashboard(
{int schoolId = 1}) async {
static Future<Map<String, dynamic>> fetchSchoolDashboard({int? schoolId}) async {
final uri = Uri.parse('$baseUrl/api/supervisor/school-dashboard').replace(
queryParameters: {'school_id': '$schoolId'},
queryParameters: schoolId == null ? null : {'school_id': '$schoolId'},
);
final response = await http
.get(uri, headers: await _headers())
@@ -242,8 +241,7 @@ class DirectorateApiService {
return Map<String, dynamic>.from(data['data'] as Map? ?? const {});
}
static Future<Map<String, dynamic>> dispatchParentReports(
{int schoolId = 1}) async {
static Future<Map<String, dynamic>> dispatchParentReports({required int schoolId}) async {
final response = await http
.post(
Uri.parse('$baseUrl/api/parent-reports/dispatch'),
@@ -255,7 +253,7 @@ class DirectorateApiService {
}
static Future<Map<String, dynamic>> importSchoolRoster({
int schoolId = 1,
required int schoolId,
required List<Map<String, dynamic>> records,
}) async {
final response = await http