获取指标说明的能力
This commit is contained in:
@@ -18,6 +18,7 @@ import quant.rich.emoney.controller.common.BaseController;
|
||||
import quant.rich.emoney.entity.config.IndexInfoConfig;
|
||||
import quant.rich.emoney.pojo.dto.LayPageResp;
|
||||
import quant.rich.emoney.pojo.dto.R;
|
||||
import quant.rich.emoney.service.IndexDetailService;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/admin/v1/manage/indexInfo")
|
||||
@@ -25,11 +26,30 @@ public class IndexInfoControllerV1 extends BaseController {
|
||||
|
||||
@Autowired
|
||||
IndexInfoConfig indexInfo;
|
||||
|
||||
@Autowired
|
||||
IndexDetailService indexDetailService;
|
||||
|
||||
@GetMapping({"", "/", "/index"})
|
||||
public String index() {
|
||||
return "/admin/v1/manage/indexInfo/index";
|
||||
}
|
||||
|
||||
@GetMapping("/getIndexDetail")
|
||||
@ResponseBody
|
||||
public R<?> getIndexDetail(String indexCode) {
|
||||
return
|
||||
R.judge(() ->
|
||||
indexDetailService.getIndexDetail(indexCode));
|
||||
}
|
||||
|
||||
@GetMapping("/forceRefreshAndGetIndexDetail")
|
||||
@ResponseBody
|
||||
public R<?> forceRefreshAndGetIndexDetail(String indexCode) {
|
||||
return
|
||||
R.judge(() ->
|
||||
indexDetailService.forceRefreshAndGetIndexDetail(indexCode));
|
||||
}
|
||||
|
||||
@GetMapping("/configIndOnline")
|
||||
@ResponseBody
|
||||
@@ -53,17 +73,11 @@ public class IndexInfoControllerV1 extends BaseController {
|
||||
return R.ok(map);
|
||||
}
|
||||
|
||||
@GetMapping("/getIndexDetail")
|
||||
@ResponseBody
|
||||
public R<?> getIndexDetail(String code) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/getConfigIndOnlineByUrl")
|
||||
@ResponseBody
|
||||
public R<?> getConfigOnlineByUrl(String url) {
|
||||
return R.judge(() -> indexInfo.getOnlineConfigByUrl(url));
|
||||
return R.judge(() -> indexInfo.getOnlineConfigByUrl());
|
||||
}
|
||||
|
||||
@GetMapping("/getIndexInfoConfig")
|
||||
|
||||
Reference in New Issue
Block a user