RefinitivApiController修改股票推荐url和入参
This commit is contained in:
@@ -15,6 +15,7 @@ import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
@@ -80,10 +81,10 @@ public class RefinitivApiController {
|
||||
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取BSE股票推荐TopActives", httpMethod = "GET", response = RetifiveStockInfo.class)
|
||||
@GetMapping("/getBSETopActives")
|
||||
@ApiOperation(value = "获取股票推荐TopActives", httpMethod = "GET", response = RetifiveStockInfo.class)
|
||||
@GetMapping("/getTopActives")
|
||||
@EncryptFilter(decryptRequest = false)
|
||||
public ServerResponse<?> getBSETopActives() {
|
||||
public ServerResponse<?> getTopActives(@RequestParam String stockType) {
|
||||
String name = ".AV.BO";
|
||||
List<RetifiveStockInfo> list = Lists.newArrayList();
|
||||
try {
|
||||
@@ -106,10 +107,10 @@ public class RefinitivApiController {
|
||||
return ServerResponse.createBySuccess("操作成功", list);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取BSE股票推荐TopGainers", httpMethod = "GET", response = RetifiveStockInfo.class)
|
||||
@GetMapping("/getBSETopGainers")
|
||||
@ApiOperation(value = "获取股票推荐TopGainers", httpMethod = "GET", response = RetifiveStockInfo.class)
|
||||
@GetMapping("/getTopGainers")
|
||||
@EncryptFilter(decryptRequest = false)
|
||||
public ServerResponse<?> getBSETopGainers() {
|
||||
public ServerResponse<?> getTopGainers(@RequestParam String stockType) {
|
||||
String name = ".PG.BO";
|
||||
List<RetifiveStockInfo> list = Lists.newArrayList();
|
||||
try {
|
||||
@@ -132,10 +133,10 @@ public class RefinitivApiController {
|
||||
return ServerResponse.createBySuccess("操作成功", list);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取BSE股票推荐TopLosers", httpMethod = "GET", response = RetifiveStockInfo.class)
|
||||
@GetMapping("/getBSETopLosers")
|
||||
@ApiOperation(value = "获取股票推荐TopLosers", httpMethod = "GET", response = RetifiveStockInfo.class)
|
||||
@GetMapping("/getTopLosers")
|
||||
@EncryptFilter(decryptRequest = false)
|
||||
public ServerResponse<?> getBSETopLosers() {
|
||||
public ServerResponse<?> getTopLosers(@RequestParam String stockType) {
|
||||
String name = ".PL.BO";
|
||||
List<RetifiveStockInfo> list = Lists.newArrayList();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user