| | |
| | | import { PushCameraGpsEntity } from '../entity/cameragps'; |
| | | import { PushVehicleGpsEntity } from '../entity/vehiclegps'; |
| | | import { PushDeviceOnoffEntity } from '../entity/deviceonoff'; |
| | | import { PushDevicealarmEntity } from '../entity/devicealarm'; |
| | | import { CachingFactory, MidwayCache } from '@midwayjs/cache-manager'; |
| | | |
| | | /** |
| | |
| | | @InjectEntityModel(PushDeviceOnoffEntity) |
| | | pushDeviceOnoffEntity: Repository<PushDeviceOnoffEntity>; |
| | | |
| | | @InjectEntityModel(PushDevicealarmEntity) |
| | | pushDevicealarmEntity: Repository<PushDevicealarmEntity>; |
| | | |
| | | @InjectEntityModel(PushAuditlogEntity) |
| | | pushAuditlogEntity: Repository<PushAuditlogEntity>; |
| | |
| | | } |
| | | |
| | | // 萤石告警 |
| | | /* |
| | | case 'ys.alarm': { |
| | | await this.pushAlarmRepo.save({ |
| | | messageId, |
| | | raw: JSON.stringify(body), |
| | | createTime: new Date(), |
| | | await this.pushDevicealarmEntity.save({ |
| | | devSerial: body.devSerial, |
| | | channelNo: body.channelNo || String(body.channel), |
| | | alarmId: body.alarmId, |
| | | alarmTime: body.alarmTime, |
| | | alarmType: body.alarmType, |
| | | channelName: body.channelName, |
| | | channelType: body.channelType ? Number(body.channelType) : 1, |
| | | checksum: body.checksum, |
| | | crypt: body.crypt ? Number(body.crypt) : 0, |
| | | customInfo: body.customInfo, |
| | | customType: body.customType, |
| | | describe: body.describe, |
| | | location: body.location, |
| | | relationId: body.relationId, |
| | | status: body.status ? Number(body.status) : 1, |
| | | pictureList: body.pictureList || [] |
| | | }); |
| | | break; |
| | | } |
| | | */ |
| | | |
| | | // 海康 ISAPI |
| | | //case 'ys.open.isapi': { |