import type { ApiResponse } from "@/types/api";

import { request } from "@/utils/request";

export interface PanelData {
  user_count: number;
  device_count: number;
  license_count: number;
  consumable_count: number;
  stocktake_count: number;
  failure_count: number;
  my_device_count: number;
  my_license_count: number;
  my_consumable_count: number;
  my_accessory_count: number;
  my_offering_count: number;
  my_allocation_count: number;
}

/**
 * 获取仪表盘统计数据
 */
export function getPanel(): Promise<ApiResponse<PanelData>> {
  return request.get("/sys/statistics/panel");
}
