爬取新闻数据测试

This commit is contained in:
dengli
2023-12-19 16:04:41 +08:00
parent 0b461fa87b
commit e511ff9b8d
2 changed files with 39 additions and 0 deletions

View File

@@ -153,6 +153,13 @@ public class StockApiController {
return ServerResponse.createBySuccess(stockService.getNews());
}
@RequestMapping({"getINDNewsInfo.do"})
@ApiOperation(value = "印度热门股票列表", httpMethod = "GET")
@ResponseBody
public ServerResponse getINDNewsInfo(@RequestParam("url") String url) {
return ServerResponse.createBySuccess(stockService.getNewsInfo(url));
}
//印度股票时线-K线
@RequestMapping({"getINDTimeK.do"})
@ApiOperation(value = "印度股票K线", httpMethod = "GET")