增加创建链接方法
This commit is contained in:
@@ -9,6 +9,7 @@ import com.volvo.ai.analytic.center.dto.resp.CompetingBrrandsDTO;
|
|||||||
import com.volvo.ai.analytic.center.dto.resp.ResultDTO;
|
import com.volvo.ai.analytic.center.dto.resp.ResultDTO;
|
||||||
import com.volvo.ai.analytic.center.feign.CompetingBrandsClient;
|
import com.volvo.ai.analytic.center.feign.CompetingBrandsClient;
|
||||||
import com.volvo.ai.analytic.center.service.HuaWeiEGService;
|
import com.volvo.ai.analytic.center.service.HuaWeiEGService;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@@ -58,6 +59,12 @@ public class EGEventSubscriptionController {
|
|||||||
return ResultDTO.success(huaWeiService.sendEvent(req));
|
return ResultDTO.success(huaWeiService.sendEvent(req));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "创建目标连接", notes = "创建目标连接", httpMethod = "POST")
|
||||||
|
@PostMapping("/connection")
|
||||||
|
public ResultDTO<CreateConnectionResponse> createConnection(@RequestBody ConnectionCreateReq req) {
|
||||||
|
return ResultDTO.success(huaWeiService.createConnection(req));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建事件订阅
|
* 创建事件订阅
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user