export enum GridType {
  oneGrid = 1,
  fourGrids = 4,
  nineGrids = 9,
  sixteenGrids = 16,
}
// 轮播中的摄像头
export type CameraInPlay = {
  id: number;
  cameraGroupDetailId: number; // 相机所属分组id
  url: string;
  name: string;
  code: string;
  // 相机的缩略图
  imageUrl: string;
};

export type Camera = {
  code: string;
  name: string;
  url: string;
  id: number; // 相机id
  cameraGroupDetailId: number; // 相机所属分组id
  /** 相机的缩略图 */
  imageUrl: string;
  // /** 租户id */
  // tenantId: number;
};

export type CameraGroupType = {
  id: number;
  groupName: string;
  children: Camera[];
  isDefault: number;
  playIntervalSec: number;
  isPaused: boolean;
};

// 后端返回的数据
export type cameraWithDetailBackEnd = {
  code: string;
  name: string;
  pushstreamIp: string;
  pushstreamIpAbs: string;
  id: number;
};

// 后端返回的数据
export type CameraBackEnd = {
  cameraGroupDetailId: number;
  cameraWithDetail: cameraWithDetailBackEnd;
};

// 后端返回的数据
export type CameraGroupTypeBackEnd = {
  id: number;
  groupName: string;
  children: CameraBackEnd[];
  isDefault: number;
  playIntervalSec: number;
  isPaused: number;
};

export type CameraGroupListType = CameraGroupType[];
export type CameraGroupListTypeBackEnd = CameraGroupTypeBackEnd[];
