class GatewayStrategyRouteEndpoint {
    @Autowired
    private GatewayStrategyRouteResource gatewayStrategyRouteResource;

    @RequestMapping(path = "/add", method = RequestMethod.POST)
    @ResponseBody
    public ResponseEntity<?> add(@RequestBody GatewayStrategyRouteEntity gatewayStrategyRouteEntity) {
        return doAdd(gatewayStrategyRouteEntity);
    }

    @RequestMapping(path = "/modify", method = RequestMethod.POST)
    @ResponseBody
    public ResponseEntity<?> modify(@RequestBody GatewayStrategyRouteEntity gatewayStrategyRouteEntity) {
        return doModify(gatewayStrategyRouteEntity);
    }

    @RequestMapping(path = "/delete/{routeId}", method = RequestMethod.DELETE)
    @ResponseBody
    public ResponseEntity<?> delete(@PathVariable(value = "routeId") String routeId) {
        return doDelete(routeId);
    }

    @RequestMapping(path = "/update-all", method = RequestMethod.POST)
    @ResponseBody
    public ResponseEntity<?> updateAll(@RequestBody List<GatewayStrategyRouteEntity> gatewayStrategyRouteEntityList) {
        return doUpdateAll(gatewayStrategyRouteEntityList);
    }

    @RequestMapping(path = "/view/{routeId}", method = RequestMethod.GET)
    @ResponseBody
    public ResponseEntity<?> view(@PathVariable(value = "routeId") String routeId) {
        return doView(routeId);
    }

    @RequestMapping(path = "/view-all", method = RequestMethod.GET)
    @ResponseBody
    public ResponseEntity<?> viewAll() {
        return doViewAll();
    }

    private ResponseEntity<?> doAdd(GatewayStrategyRouteEntity gatewayStrategyRouteEntity) {
        try {
            gatewayStrategyRouteResource.add(gatewayStrategyRouteEntity);

            return ResponseUtil.getSuccessResponse(true);
        } catch (Exception e) {
            return ResponseUtil.getFailureResponse(e);
        }
    }

    private ResponseEntity<?> doModify(GatewayStrategyRouteEntity gatewayStrategyRouteEntity) {<FILL_FUNCTION_BODY>}

    private ResponseEntity<?> doDelete(String routeId) {
        try {
            gatewayStrategyRouteResource.delete(routeId);

            return ResponseUtil.getSuccessResponse(true);
        } catch (Exception e) {
            return ResponseUtil.getFailureResponse(e);
        }
    }

    private ResponseEntity<?> doUpdateAll(List<GatewayStrategyRouteEntity> gatewayStrategyRouteEntityList) {
        try {
            gatewayStrategyRouteResource.updateAll(gatewayStrategyRouteEntityList);

            return ResponseUtil.getSuccessResponse(true);
        } catch (Exception e) {
            return ResponseUtil.getFailureResponse(e);
        }
    }

    private ResponseEntity<?> doView(String routeId) {
        try {
            GatewayStrategyRouteEntity gatewayStrategyRouteEntity = gatewayStrategyRouteResource.view(routeId);

            return ResponseUtil.getSuccessResponse(gatewayStrategyRouteEntity);
        } catch (Exception e) {
            return ResponseUtil.getFailureResponse(e);
        }
    }

    private ResponseEntity<?> doViewAll() {
        try {
            List<GatewayStrategyRouteEntity> gatewayStrategyRouteEntityList = gatewayStrategyRouteResource.viewAll();

            return ResponseUtil.getSuccessResponse(gatewayStrategyRouteEntityList);
        } catch (Exception e) {
            return ResponseUtil.getFailureResponse(e);
        }
    }
}

        try {
            gatewayStrategyRouteResource.modify(gatewayStrategyRouteEntity);

            return ResponseUtil.getSuccessResponse(true);
        } catch (Exception e) {
            return ResponseUtil.getFailureResponse(e);
        }
    
<no_super_class>