时分线优化

This commit is contained in:
dengli
2023-12-02 09:20:21 +08:00
parent 68e0248ce6
commit d0ff0077a0
3 changed files with 27 additions and 28 deletions

View File

@@ -124,34 +124,14 @@ public class StockApiController {
//印度股票时线-K线
@RequestMapping({"getINDTimeK.do"})
@ApiOperation(value = "印度股票时线-K线", httpMethod = "GET")
@ApiOperation(value = "印度股票K线", httpMethod = "GET")
@ResponseBody
public ServerResponse getINDTimeK(@RequestParam("stockCode") String stockCode) {
return this.stockService.getTimeK(stockCode);
}
//印度股票日线-K线
@RequestMapping({"getINDDayK.do"})
@ApiOperation(value = "印度股票日线-K线", httpMethod = "GET")
@ResponseBody
public ServerResponse getINDDayK(@RequestParam("stockCode") String stockCode) {
return this.stockService.getDayK(stockCode);
}
//印度股票周线-K线
@RequestMapping({"getINDWeekK.do"})
@ApiOperation(value = "印度股票周线-K线", httpMethod = "GET")
@ResponseBody
public ServerResponse getINDWeekK(@RequestParam("stockCode") String stockCode) {
return this.stockService.getWeekK(stockCode);
}
//印度股票月线-K线
@RequestMapping({"getINDMonthK.do"})
@ApiOperation(value = "印度股票月线-K线", httpMethod = "GET")
@ResponseBody
public ServerResponse getINDMonthK(@RequestParam("stockCode") String stockCode) {
return this.stockService.getMonthK(stockCode);
@ApiImplicitParams({
@ApiImplicitParam(name = "stockCode",value = "股票对应代码",dataType ="String",required = true),
@ApiImplicitParam(name = "type",value = "type 0-时分线 1-日线 2-周线 3-月线",dataType ="Integer",required = true),
})
public ServerResponse getINDTimeK(@RequestParam("stockCode") String stockCode, @RequestParam("type") Integer type) {
return this.stockService.getIndiaK(stockCode, type);
}
//根据股票id查询 股票指数、大盘指数信息