mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-08-26 04:29:39 +00:00

- Introduced AqiModule with AqiService and AqiController for handling AQI data. - Added DTOs for AQI requests: GetAqiDailyBySpaceDto and GetAqiPollutantBySpaceDto. - Implemented AqiDataService for managing AQI sensor historical data. - Updated existing modules to include AqiDataService where necessary. - Defined new routes for AQI data retrieval in ControllerRoute.
11 lines
416 B
TypeScript
11 lines
416 B
TypeScript
import { DataSource, Repository } from 'typeorm';
|
|
import { Injectable } from '@nestjs/common';
|
|
import { AqiSpaceDailyPollutantStatsEntity } from '../entities';
|
|
|
|
@Injectable()
|
|
export class AqiSpaceDailyPollutantStatsRepository extends Repository<AqiSpaceDailyPollutantStatsEntity> {
|
|
constructor(private dataSource: DataSource) {
|
|
super(AqiSpaceDailyPollutantStatsEntity, dataSource.createEntityManager());
|
|
}
|
|
}
|