fengxiang
2018-07-06 309d1f9d649daa08bb9b068af014749f6d4a5bce
src/app/business/entity/data.ts
@@ -1,5 +1,5 @@
import { Column } from '@business/entity/grid';
import { AlarmStyle, TimeUnits, AreaRange, DeviceDimension } from '@business/enum/types.enum';
import { AlarmStyle, TimeUnits, AreaRange, DeviceDimension, Operator } from '@business/enum/types.enum';
export interface AreaNames {
@@ -167,3 +167,21 @@
  category: string;
  value: number;
}
export interface OperatorRule {
  operator: Operator;
  value: number;
}
export interface SensorUnit {
  id?: number|any;
  originalUnitName?: string;
  name?: string|any;
  rules?: OperatorRule[]|any;
  sensorId?: number|any;
}
export interface OrganizationSensorUnit {
  id?: number|any;
  sensorUnitId?: number|any;
  sensorUnit?: SensorUnit|any;
  sensor?: Sensor|any;
  organizationId?: number|any;
}