class SentinelParamEndpoint {
    @Autowired
    private SentinelParamResource sentinelParamResource;

    @RequestMapping(path = "/update-param-flow-rules", method = RequestMethod.POST)
    @ResponseBody
    public ResponseEntity<?> updateParamFlowRules(@RequestBody String rule) {
        return doUpdateParamFlowRules(rule);
    }

    @RequestMapping(path = "/clear-param-flow-rules", method = RequestMethod.POST)
    @ResponseBody
    public ResponseEntity<?> clearParamFlowRules() {
        return doClearParamFlowRules();
    }

    @RequestMapping(path = "/view-param-flow-rules", method = RequestMethod.GET)
    @ResponseBody
    public ResponseEntity<?> viewParamFlowRules() {
        return doViewParamFlowRules();
    }

    private ResponseEntity<?> doUpdateParamFlowRules(String rule) {
        try {
            sentinelParamResource.updateParamFlowRules(rule);

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

    private ResponseEntity<?> doClearParamFlowRules() {
        try {
            sentinelParamResource.clearParamFlowRules();

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

    private ResponseEntity<?> doViewParamFlowRules() {<FILL_FUNCTION_BODY>}
}

        try {
            List<ParamFlowRule> paramFlowRules = sentinelParamResource.viewParamFlowRules();

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