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

class InspectionRoomRepository {
  /// 获取设备巡检房间列表
  Future<ResponseModel<InspectionRoomBO>> getRooms() {
    return DioRequest.instance.get<InspectionRoomBO>(
      '/app/device/inspection/rooms',
      fromJsonT: (data) =>
          InspectionRoomBO.fromJson(data as Map<String, dynamic>),
    );
  }
}