Commit 2ea0bad8 authored by 李欣峰's avatar 李欣峰

<dev>

1.代码统一,新增获取限流接口
parent 0f9842ab
server: server:
port: 10001 port: 10008
spring: spring:
application: application:
name: @artifactId@ name: @artifactId@
api-service-address: api-service-address:
path: /v1/apiService/** path: /v1/dataService/**
uri: http://192.168.70.46:6725 uri: http://192.168.70.46:6725
url: http://192.168.70.46:6725/v1/dataService/api/getApiLimit url: http://192.168.70.46:6725/v1/dataService/api/getApiLimit
......
...@@ -13,6 +13,7 @@ import com.zorkdata.dddlib.api.login.model.BkUser; ...@@ -13,6 +13,7 @@ import com.zorkdata.dddlib.api.login.model.BkUser;
import com.zorkdata.dddlib.core.sdk.InvokeResult; import com.zorkdata.dddlib.core.sdk.InvokeResult;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -265,6 +266,15 @@ public class ApiServicueController extends BaseController { ...@@ -265,6 +266,15 @@ public class ApiServicueController extends BaseController {
} }
@Value("${api-getway-address}")
private String getway;
@Inner(value = false)
@GetMapping("/getWayPort")
public InvokeResult getWayPort() {
return InvokeResult.success(getway);
}
@Inner(value = false) @Inner(value = false)
@PostMapping("/executeApi") @PostMapping("/executeApi")
public InvokeResult executeApi(@RequestParam String apiName, public InvokeResult executeApi(@RequestParam String apiName,
...@@ -291,6 +301,8 @@ public class ApiServicueController extends BaseController { ...@@ -291,6 +301,8 @@ public class ApiServicueController extends BaseController {
@Inner(value = false) @Inner(value = false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment