import '../../models/bo/room_statistics_bo.dart';
import '../../utils/http/dio_request.dart';
import '../../utils/http/response_model.dart';

class RoomStatisticsRepository {
  /// GET /app/room/statistics - 客房服务看板-统计
  Future<ResponseModel<RoomStatisticsBO>> getStatistics() {
    return DioRequest.instance.get<RoomStatisticsBO>(
      '/app/room/statistics',
      fromJsonT: (data) =>
          RoomStatisticsBO.fromJson(data as Map<String, dynamic>),
    );
  }
}
