import { Body, Controller, Delete, Param, Post, Query } from '@nestjs/common';
import { SeedService } from './seed.service';
import { SeedListingsDto } from './dto/seed-listings.dto';

@Controller('seed')
export class SeedController {
  constructor(private readonly seedService: SeedService) {}

  @Post()
  seedListings(@Body() dto: SeedListingsDto) {
    return this.seedService.seedListings(dto);
  }

  @Delete(':userId')
  deleteListings(
    @Param('userId') userId: string,
    @Query('count') count?: string,
  ) {
    return this.seedService.deleteListings(userId, count);
  }
}
