| | |
| | | |
| | | import com.nq.common.ServerResponse; |
| | | import com.nq.pojo.SiteSetting; |
| | | import com.nq.pojo.StockSubscribe; |
| | | import com.nq.service.IStockService; |
| | | import com.nq.service.StockDzService; |
| | | import com.nq.vo.stock.StockSubscribeListParamVo; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | public ServerResponse getSingleStock(@RequestParam("code") String code, HttpServletRequest request) { |
| | | return this.iStockService.getSingleStock(code, request); |
| | | } |
| | | //美股股票代码查询股票信息 |
| | | @RequestMapping({"getSingleStockByCode.do"}) |
| | | @ResponseBody |
| | | public ServerResponse getSingleStockByCode(@RequestParam("code") String code) { |
| | | return this.iStockService.getSingleStockByCode(code); |
| | | } |
| | | |
| | | @RequestMapping({"getMinK.do"}) |
| | | @ResponseBody |
| | | public ServerResponse getMinK(@RequestParam("code") String code, @RequestParam("time") Integer time, @RequestParam("ma") Integer ma, @RequestParam("size") Integer size) { |
| | | return this.iStockService.getMinK(code, time, ma, size); |
| | | } |
| | | |
| | | /*查询股票日线*/ |
| | | @RequestMapping({"getDayK.do"}) |
| | | @ResponseBody |
| | | public ServerResponse getDayK(@RequestParam("code") String code) { |
| | | return this.iStockService.getDayK_Echarts(code); |
| | | } |
| | | /*查询股票日线*/ |
| | | @RequestMapping({"getKData.do"}) |
| | | @ResponseBody |
| | |
| | | |
| | | |
| | | |
| | | //查询股票历史数据数据 |
| | | @RequestMapping({"getMinK_Echarts.do"}) |
| | | @ResponseBody |
| | | public ServerResponse getMinK_Echarts(@RequestParam("code") String code, @RequestParam("time") Integer time, @RequestParam("ma") Integer ma, @RequestParam("size") Integer size) { |
| | | return this.iStockService.getMinK_Echarts(code, time, ma, size); |
| | | } |
| | | |
| | | /*期货分时-k线*/ |
| | | @RequestMapping({"getFuturesMinK_Echarts.do"}) |
| | | @ResponseBody |
| | | public ServerResponse getFuturesMinK_Echarts(@RequestParam("code") String code, @RequestParam("time") Integer time, @RequestParam("size") Integer size) { |
| | | return this.iStockService.getFuturesMinK_Echarts(code, time, size); |
| | | } |
| | | |
| | | /*指数分时-k线*/ |
| | | @RequestMapping({"getIndexMinK_Echarts.do"}) |
| | | @ResponseBody |
| | | public ServerResponse getIndexMinK_Echarts(@RequestParam("code") String code, @RequestParam("time") Integer time, @RequestParam("size") Integer size) { |
| | | return this.iStockService.getIndexMinK_Echarts(code, time, size); |
| | | } |
| | | |
| | | /*查询期货日线*/ |
| | | @RequestMapping({"getFuturesDayK.do"}) |
| | | @ResponseBody |
| | | public ServerResponse getFuturesDayK(@RequestParam("code") String code) { |
| | | return this.iStockService.getFuturesDayK(code); |
| | | } |
| | | |
| | | /*指数日线*/ |
| | | @RequestMapping({"getIndexDayK.do"}) |
| | | @ResponseBody |
| | | public ServerResponse getIndexDayK(@RequestParam("code") String code) { |
| | | return this.iStockService.getIndexDayK(code); |
| | | } |
| | | |
| | | /* 股票日线*/ |
| | | @RequestMapping({"getStockDayK.do"}) |
| | | @ResponseBody |
| | | public ServerResponse getStockDayK(@RequestParam("code") String code) { |
| | | return this.iStockService.getStockDayK(code); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | // //查询股票需要换数据源的股票 |
| | | // @RequestMapping({"stockDataBase.do"}) |
| | | // @ResponseBody |
| | | // public ServerResponse stockDataBase() { |
| | | // return this.iStockService.stockDataBase(); |
| | | // } |
| | | |
| | | /** |
| | | *大宗交易 列表 |
| | |
| | | public ServerResponse getVipByCode(String code) { |
| | | return this.iStockService.getVipByCode(code); |
| | | } |
| | | |
| | | @PostMapping({"getStockSubscribeList.do"}) |
| | | @ResponseBody |
| | | public ServerResponse getStockSubscribeList(StockSubscribeListParamVo vo) { |
| | | return this.iStockService.getStockSubscribeList(vo); |
| | | } |
| | | |
| | | |
| | | } |