|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
package cn.estsh.i3plus.core.apiservice.controller;
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.icloud.core.controller.DemoCoreCloudInterface;
|
|
|
|
|
import cn.estsh.i3plus.icloud.core.sdk.ICoreDemoCloud;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
|
|
|
|
|
import cn.estsh.impp.framework.boot.util.ResultBean;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
@ -18,7 +18,7 @@ public class DemoCloudController {
|
|
|
|
|
private static final Logger LOGGER = LoggerFactory.getLogger(DemoCloudController.class);
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
DemoCoreCloudInterface demoCloudInterface;
|
|
|
|
|
ICoreDemoCloud coreDemoCloud;
|
|
|
|
|
|
|
|
|
|
@GetMapping(value="/test")
|
|
|
|
|
@ApiOperation(value="测试",notes = "测试")
|
|
|
|
@ -26,22 +26,22 @@ public class DemoCloudController {
|
|
|
|
|
LOGGER.info("【接受数据】{}",test);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
demoCloudInterface.testGet("get = " + test);
|
|
|
|
|
coreDemoCloud.testGet("get = " + test);
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
LOGGER.error("XXXX --> get调用出错:" + e.getMessage(),e);
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
demoCloudInterface.testPost("post = " + test);
|
|
|
|
|
coreDemoCloud.testPost("post = " + test);
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
LOGGER.error("XXXX --> post调用出错:" + e.getMessage(),e);
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
demoCloudInterface.testPut("testPut = " + test);
|
|
|
|
|
coreDemoCloud.testPut("testPut = " + test);
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
LOGGER.error("XXXX --> testPut调用出错:" + e.getMessage(),e);
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
demoCloudInterface.testDelete("delete = " + test);
|
|
|
|
|
coreDemoCloud.testDelete("delete = " + test);
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
LOGGER.error("XXXX --> delete调用出错:" + e.getMessage(),e);
|
|
|
|
|
}
|
|
|
|
|