You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
625 B
19 lines
625 B
import { Controller, Get, Query } from '@nestjs/common';
|
|
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
|
|
import { AuthUser, CurrentUser } from '../../common/current-user.decorator';
|
|
import { RequirePermissions } from '../../common/permissions.decorator';
|
|
import { MapService } from './map.service';
|
|
|
|
@ApiBearerAuth()
|
|
@ApiTags('地图监控')
|
|
@RequirePermissions('map:view')
|
|
@Controller('map')
|
|
export class MapController {
|
|
constructor(private readonly mapService: MapService) {}
|
|
|
|
@Get('points')
|
|
points(@CurrentUser() user: AuthUser, @Query() query: any) {
|
|
return this.mapService.points(user, query);
|
|
}
|
|
}
|