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

class AlertDashboardRepository {
  Future<ResponseModel<AlertDashboardBO>> getDashboard() {
    return DioRequest.instance.get<AlertDashboardBO>(
      '/app/alert/dashboard',
      queryParameters: {'alertStatus': 0,'pageNum':1,'pageSize':5}, // 处理状态：0=待处理 1=处理中 2=已处理 3=已忽略 4=误报关闭
      fromJsonT: (data) =>
          AlertDashboardBO.fromJson(data as Map<String, dynamic>),
    );
  }
}