装置文件夹新建、删除
This commit is contained in:
@@ -24,4 +24,11 @@ public interface AskDeviceDataFeignClient {
|
||||
|
||||
@PostMapping("/rebootDevice")
|
||||
HttpResult<String> rebootDevice(@RequestParam("nDid") String nDid);
|
||||
|
||||
@PostMapping("/createFolder")
|
||||
HttpResult<String> createFolder(@RequestParam("nDid") String nDid, @RequestParam("path") String path);
|
||||
|
||||
@PostMapping("/deleteFolder")
|
||||
HttpResult<String> deleteFolder(@RequestParam("nDid") String nDid, @RequestParam("path") String path);
|
||||
|
||||
}
|
||||
|
||||
@@ -55,6 +55,18 @@ public class AskDeviceDataClientFallbackFactory implements FallbackFactory<AskDe
|
||||
log.error("{}异常,降级处理,异常为:{}","设备重启",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<String> createFolder(String nDid, String path) {
|
||||
log.error("{}异常,降级处理,异常为:{}","创建文件夹",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<String> deleteFolder(String nDid, String path) {
|
||||
log.error("{}异常,降级处理,异常为:{}","删除文件夹",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user