import type { BaseModel, ReduceForPageQuery, ReduceForSaveVO, ReduceForUpdateVO } from '@/apis';
import type { Nullable, Optional } from '@/types';

export interface NdmAlarmHost extends BaseModel {
  deviceId: string;
  name: string;
  manufacturer: string;
  state: boolean;
  model: string;
  ipAddress: string;
  manageUrl: string;
  manageUsername: string;
  managePassword: string;
  gbCode: string;
  gbPort: number;
  gbDomain: string;
  gb28181Enabled: boolean;
  diagFlag: string;
  diagParam: string;
  diagFormat: string;
  lastDiagInfo: string;
  lastDiagTime: string;
  icmpEnabled: boolean;
  description: string;
  deviceStatus: string;
  deviceType: string;
  community: string;
  frontendConfig: string;
  linkDescription: string;
  snmpEnabled: boolean;
}

export type NdmAlarmHostResultVO = Nullable<NdmAlarmHost>;

export type NdmAlarmHostSaveVO = Partial<Omit<NdmAlarmHost, ReduceForSaveVO>>;

export type NdmAlarmHostUpdateVO = Optional<Omit<NdmAlarmHost, ReduceForUpdateVO>>;

export type NdmAlarmHostPageQuery = Partial<Omit<NdmAlarmHost, ReduceForPageQuery>>;
