feat : home page

This commit is contained in:
2025-06-15 17:16:04 +03:30
parent 448834ecb2
commit 77d5f3be3e
20 changed files with 540 additions and 262 deletions

View File

@@ -19,7 +19,7 @@ abstract class ChickenRepository {
required String token,
});
Future<BarInformation?> getGeneralBarInformation({required String token});
Future<BarInformation?> getGeneralBarInformation({required String token,Map<String, dynamic>? queryParameters});
Future<WaitingArrivalModel?> getWaitingArrivals({
required String token,

View File

@@ -49,9 +49,11 @@ class ChickenRepositoryImpl implements ChickenRepository {
@override
Future<BarInformation?> getGeneralBarInformation({
required String token,
Map<String, dynamic>? queryParameters
}) async {
var res = await _httpClient.get(
'/bars_for_kill_house_dashboard/?role=Steward',
queryParameters: queryParameters,
headers: {'Authorization': 'Bearer $token'},
fromJson: BarInformation.fromJson,
);