class AssetController {

    @GetMapping(value = "/v1/list/assetgroup")
    public ResponseEntity<Object> getAllAssetGroups() {
        try {
            List<Map<String, Object>> assetGroupDetails = assetService.getAllAssetGroups();
            return ResponseUtils.buildSucessResponse(assetGroupDetails);
        } catch (Exception exception) {
            return ResponseUtils.buildFailureResponse(exception);
        }
    }

}