|
|
@@ -36,24 +36,24 @@ public class AliIotApiController {
|
|
|
@PostMapping("/product/query/{currentPage}/{pageSize}")
|
|
|
@Operation(summary = "获取阿里云产品信息")
|
|
|
public Mono<?> queryPageProducts(@PathVariable("currentPage") Integer currentPage,@PathVariable("pageSize") Integer pageSize,
|
|
|
- @RequestBody AliApiParam param){
|
|
|
+ @RequestBody AliApiParam param){
|
|
|
try {
|
|
|
verifyCommonParam(param);
|
|
|
return aliIotService.queryIotProductPage(param,currentPage,pageSize);
|
|
|
}catch (ClientException e){
|
|
|
- return Mono.error(new BusinessException(e.getMessage()));
|
|
|
+ return Mono.error(new BusinessException("阿里云参数配置错误:"+e.getErrMsg()));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@PostMapping("/device/query/{currentPage}/{pageSize}")
|
|
|
@Operation(summary = "获取阿里云产品下设备信息")
|
|
|
public Mono<?> queryPageDevices(@PathVariable("currentPage") Integer currentPage,@PathVariable("pageSize") Integer pageSize,
|
|
|
- @RequestBody AliApiParam param){
|
|
|
+ @RequestBody AliApiParam param){
|
|
|
try {
|
|
|
verifyDeviceParam(param);
|
|
|
return aliIotService.queryIotDevicePage(param,currentPage,pageSize);
|
|
|
}catch (ClientException e){
|
|
|
- return Mono.error(new BusinessException(e.getMessage()));
|
|
|
+ return Mono.error(new BusinessException("阿里云参数配置错误:"+e.getErrMsg()));
|
|
|
}
|
|
|
}
|
|
|
|