z 4 gadi atpakaļ
vecāks
revīzija
538bfc1745

+ 0 - 30
src/main/java/com/zx/dataservice/controller/ChoiceController.java

@@ -1,30 +0,0 @@
-package com.zx.dataservice.controller;
-
-import com.zx.dataservice.config.ServerResponse;
-import com.zx.dataservice.service.ChoiceStockService;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.ResponseBody;
-
-@Controller
-@RequestMapping({"/api/"})
-@Api(value="获取板块信息")
-public class ChoiceController {
-
-    @Autowired
-    private ChoiceStockService choiceService;
-
-    // 获取Datafeed 配置数据
-    @RequestMapping(value = {"getPlateInfo"}, method = RequestMethod.GET)
-    @ResponseBody
-    @ApiOperation(value="获取东方财富板块信息", notes="获取东方财富板块信息")
-    public ServerResponse getPlateInfo() {
-        choiceService.getPlateInfo();
-        return ServerResponse.createBySuccess();
-    }
-
-}

+ 0 - 42
src/main/java/com/zx/dataservice/controller/TaskController.java

@@ -1,42 +0,0 @@
-package com.zx.dataservice.controller;
-
-import com.zx.dataservice.config.ServerResponse;
-import com.zx.dataservice.service.ChoiceStockService;
-import com.zx.dataservice.service.CreatorService;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.ResponseBody;
-
-@Controller
-@RequestMapping({"/api/task"})
-@Api(value="触发定时任务")
-public class TaskController {
-
-    @Autowired
-    private ChoiceStockService choiceStockService;
-
-    @Autowired
-    private CreatorService creatorService;
-
-    // 获取Datafeed 配置数据
-    @RequestMapping(value = {"toTask"}, method = RequestMethod.GET)
-    @ResponseBody
-    @ApiOperation(value="触发定时任务", notes="触发定时任务")
-    public ServerResponse getPlateInfo() {
-        choiceStockService.analysisStockRestData();
-        return ServerResponse.createBySuccess();
-    }
-
-    // 获取Datafeed 配置数据
-    @RequestMapping(value = {"creatorUvxy"}, method = RequestMethod.GET)
-    @ResponseBody
-    @ApiOperation(value="恐慌指数", notes="恐慌指数")
-    public ServerResponse creatorUvxy() {
-        creatorService.creatorUvxy();
-        return ServerResponse.createBySuccess();
-    }
-}