import { Controller, Get, Query } from '@nestjs/common'; import { ApiBearerAuth, ApiOperation, ApiTags } from '@nestjs/swagger'; import { WarehouseInventoryService } from './warehouse-inventory.service'; @ApiTags('warehouse-loadings') @ApiBearerAuth() @Controller('warehouse-loadings') export class WarehouseLoadingsController { constructor(private readonly inventoryService: WarehouseInventoryService) {} @Get() @ApiOperation({ summary: 'List wagon loading records' }) findAll(@Query('bookingId') bookingId?: string, @Query('wagonId') wagonId?: string) { return this.inventoryService.findLoadings({ bookingId, wagonId }); } }