import { Controller, Get, Inject } from '@nestjs/common'; import { ApiOkResponse, ApiTags } from '@nestjs/swagger'; import { ShortTermConclusionResponseDto, ShortTermEmotionResponseDto, } from './short-term.dto'; import { ShortTermMarketService } from './short-term.service'; @ApiTags('market-overview-short-term') @Controller('market-overview/short-term') export class ShortTermMarketController { constructor( @Inject(ShortTermMarketService) private readonly service: ShortTermMarketService, ) {} @Get('emotion') @ApiOkResponse({ type: ShortTermEmotionResponseDto }) getEmotion(): Promise { return this.service.getEmotion(); } @Get('conclusion') @ApiOkResponse({ type: ShortTermConclusionResponseDto }) getConclusion(): Promise { return this.service.getConclusion(); } }