feat(FEAT-DS-001): 接入AKTools超短行情补充数据源
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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<ShortTermEmotionResponseDto> {
|
||||
return this.service.getEmotion();
|
||||
}
|
||||
|
||||
@Get('conclusion')
|
||||
@ApiOkResponse({ type: ShortTermConclusionResponseDto })
|
||||
getConclusion(): Promise<ShortTermConclusionResponseDto> {
|
||||
return this.service.getConclusion();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user