cameraModel.ts 1.65 KB
import { BasicPageParams } from '/@/api/model/baseModel';
export type CameraQueryParam = BasicPageParams & CameraParam;

export type CameraParam = {
  status: true;
  name: string;
  organizationId: string;
  orderFiled: string;
  orderType: string;
};

export interface CameraModel {
  accessMode: number;
  avatar?: string;
  brand: string;
  createTime?: '2022-04-19T11:33:13.113Z';
  creator?: string;
  defaultConfig?: string;
  description?: string;
  deviceInfo?: string;
  deviceType?: string;
  enabled?: true;
  icon?: string;
  id?: string;
  name: string;
  organizationId: string;
  organizationName?: string;
  roleIds?: ['string'];
  sn: string;
  status?: false;
  tenantExpireTime?: '2022-04-19T11:33:13.113Z';
  tenantId?: string;
  tenantProfileId?: string;
  tenantStatus?: 'DISABLED';
  updateTime?: '2022-04-19T11:33:13.113Z';
  updater?: string;
  videoUrl: string;
}

export interface StreamingManageRecord {
  id: string;
  creator: string;
  createTime: string;
  name: string;
  enabled: boolean;
  tenantId: string;
  sn: string;
  organizationId: string;
  organizationName: string;
  status: boolean;
  accessMode: number;
  playProtocol: number;
}

export interface StreamingMediaModel {
  id: string;
  creator: string;
  createTime: string;
  enabled: boolean;
  tenantId: string;
  type: number;
  host: string;
  appKey: string;
  appSecret: string;
  ssl: number;
}

export interface StreamingQueryParam {
  host?: string;
}

export interface StreamingSubmitParam {
  type: number;
  ssl: number;
  host: string;
  appKey: string;
  appSecret: string;
  id?: string;
}

export interface StreamingMediaDeleteParam {
  tenantId?: string;
  ids: string[];
}