2023-02-25 15:12:03 +01:00
|
|
|
import { Inject } from '@nestjs/common';
|
2023-05-21 08:26:06 +02:00
|
|
|
import { AuthUserDto } from '../auth';
|
2023-03-03 03:47:08 +01:00
|
|
|
import { IAssetRepository } from './asset.repository';
|
2023-05-21 08:26:06 +02:00
|
|
|
import { MapMarkerDto } from './dto/map-marker.dto';
|
|
|
|
import { MapMarkerResponseDto } from './response-dto';
|
2023-02-25 15:12:03 +01:00
|
|
|
|
|
|
|
export class AssetService {
|
2023-05-26 21:43:24 +02:00
|
|
|
constructor(@Inject(IAssetRepository) private assetRepository: IAssetRepository) {}
|
2023-05-21 08:26:06 +02:00
|
|
|
|
|
|
|
getMapMarkers(authUser: AuthUserDto, options: MapMarkerDto): Promise<MapMarkerResponseDto[]> {
|
|
|
|
return this.assetRepository.getMapMarkers(authUser.id, options);
|
|
|
|
}
|
2023-02-25 15:12:03 +01:00
|
|
|
}
|