| | |
| | | import { Column } from '@business/entity/grid'; |
| | | import { AlarmStyle, TimeUnits, AreaRange } from '@business/enum/types.enum'; |
| | | import { AlarmStyle, TimeUnits, AreaRange, DeviceDimension, Operator } from '@business/enum/types.enum'; |
| | | |
| | | |
| | | export interface AreaNames { |
| | | provinceName?: string; |
| | | cityName?: string; |
| | | areaName?: string; |
| | | townName?: string; |
| | | villageName?: string; |
| | | } |
| | | // 传感器 |
| | | export interface Sensor { |
| | |
| | | provinceCode?: any|Column; |
| | | areaNames?: AreaNames|any ; |
| | | organization?: Organization; |
| | | townCode?: any|Column; |
| | | villageCode?: any|Column; |
| | | |
| | | } |
| | | |
| | | // 报警配置 |
| | |
| | | areaRange?: AreaRange; |
| | | areaRangeId?: number; |
| | | timeUnits?: TimeUnits; |
| | | deviceDimension?: DeviceDimension; |
| | | dimensionValue?: any; |
| | | } |
| | | |
| | | export interface PairData { |
| | | 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; |
| | | } |