index.ts 1.59 KB
export interface DictItem {
  id: string;
  itemText: string;
  itemValue: string;
  description: string;
  sort: number;
  status: number;
  createTime: string;
  updateTime: string;
}

export interface UploadResponse {
  fileName: string
  fileDownloadUri: string
  fileType: string
  size: number
  fileStaticUri: string
}


export interface OrganizationListItem {
  id: string;
  name: string;
  parentId?: string;
  remark: string;
}

export interface ConfigurationItemType {
  id: string
  creator: string
  createTime: string
  name: string
  enabled: boolean
  tenantId: string
  viewType: string
  organizationId: string
  platform: string
  organizationDTO: OrganizationDto
  publicId?: string
  productAndDevice: ProductAndDevice[]
}

export interface OrganizationDto {
  name: string
  enabled: boolean
  sort: number
  children: any[]
}

export interface ProductAndDevice {
  name: string
  profileId: string
  deviceList: any
  deviceType: string
  transportType: string
}


export interface CameraRecord {
  id: string;
  creator: string;
  createTime: string;
  updater: string;
  updateTime: string;
  name: string;
  enabled: boolean;
  tenantId: string;
  videoUrl: string;
  brand: string;
  sn: string;
  organizationId: string;
  organizationName: string;
  status: boolean;
  accessMode: number;
  playProtocol: number;
  deviceId?: string;
  channelId?: string;
  params?: {
    channelNo: string;
    deviceId: string;
  };
  videoPlatformDTO?: VideoPlatformDTO;
}

interface VideoPlatformDTO {
  enabled: boolean;
  type: number;
  host: string;
  appKey: string;
  appSecret: string;
  ssl: number;
}