export enum LayoutConfigType {
  scene = 1,
  camera = 2,
}
export enum ViewType {
  companyHomepage_PC = 1,
  minimap_PC,
  cameraLayout,
  companyHomepage_phone,
  minimap_phone,
  IOT_DeviceChart = 10,
}

export interface CompanyType {
  code: string;
  createdAt: string;
  createdBy: number;
  id: number;
  isDisabled: 0 | 1;
  latitude: number;
  longitude: number;
  name: string;
  orderNum: number;
  parentId: number;
  regionCode: string;
  remark: string;
  tenantId: number;
  thumbnail: string;
  updatedAt: string;
  updatedBy: number;
}

export interface CompanyLayoutType {
  id: number;
  viewName: string;
  viewType: number;
  viewCode: string;
  targetId: number;
  layout: string;
  version: string;
  isDisabled: 0 | 1;
  createdAt: string;
  updatedAt: string;
  tenantId: number;
}

export type LayoutType = {
  bgInfo: {
    height: number;
    width: number;
    img: string;
  };
  shopList: ShopType[];
};

export interface ShopType {
  id: number;
  companyId: number;
  sceneLabelId: number;
  name: string;
  code: string;
  remark: string;
  status: number;
  createdAt: string;
  updatedAt: string;
  isDeleted: 0 | 1;
  serial: number;
  tenantId: number;
  labelName: string;
  workshopModule: {
    id: number;
    name: string;
    code: string;
    remark: string;
    status: number;
    createdAt: string;
    updatedAt: string;
    isDeleted: 0 | 1;
    tenantId: number;
  };
  children?: {
    id: number;
    workshopId: number;
    name: string;
    code: string;
    remark: string;
    principal: string;
    status: number;
    createdAt: string;
    updatedAt: string;
    isDeleted: 0 | 1;
    serial: number;
    tenantId: number;
  }[];
  x: number;
  y: number;
  scaleX: number;
  scaleY: number;
  bgColor: string;
  fontSize: number;
  fontColor: string;
  posType: string;
}
