AssetController.java 文件源码

java
阅读 25 收藏 0 点赞 0 评论 0

项目:iotplatform 作者:
@PreAuthorize("hasAuthority('TENANT_ADMIN')")
@RequestMapping(value = "/asset/{assetId}", method = RequestMethod.DELETE)
@ResponseStatus(value = HttpStatus.OK)
public void deleteAsset(@PathVariable("assetId") String strAssetId) throws IoTPException {
  checkParameter("assetId", strAssetId);
  try {
    AssetId assetId = new AssetId(toUUID(strAssetId));
    checkAssetId(assetId);
    assetService.deleteAsset(assetId);
  } catch (Exception e) {
    throw handleException(e);
  }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号