2026-01-09 23:18:52 +08:00
|
|
|
import { Controller, Get, Query } from '@nestjs/common';
|
|
|
|
|
import { BidsService } from '../services/bid.service';
|
|
|
|
|
|
|
|
|
|
@Controller('api/bids')
|
|
|
|
|
export class BidsController {
|
|
|
|
|
constructor(private readonly bidsService: BidsService) {}
|
|
|
|
|
|
|
|
|
|
@Get()
|
|
|
|
|
findAll(@Query() query: any) {
|
|
|
|
|
return this.bidsService.findAll(query);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Get('high-priority')
|
|
|
|
|
getHighPriority() {
|
|
|
|
|
return this.bidsService.getHighPriorityCorrected();
|
|
|
|
|
}
|
2026-01-12 02:09:48 +08:00
|
|
|
|
|
|
|
|
@Get('sources')
|
|
|
|
|
getSources() {
|
|
|
|
|
return this.bidsService.getSources();
|
|
|
|
|
}
|
2026-01-09 23:18:52 +08:00
|
|
|
}
|