class InspectorEndpoint {
    @Autowired
    private InspectorResource inspectorResource;

    @RequestMapping(path = "/inspect", method = RequestMethod.POST)
    @ApiOperation(value = "侦测全链路路由", notes = "", response = ResponseEntity.class, httpMethod = "POST")
    @ResponseBody
    public ResponseEntity<?> inspect(@RequestBody @ApiParam(value = "侦测对象", required = true) InspectorEntity inspectorEntity) {
        return doInspect(inspectorEntity);
    }

    @RequestMapping(path = "/inspect-service", method = RequestMethod.POST)
    @ApiOperation(value = "侦测全链路路由", notes = "", response = ResponseEntity.class, httpMethod = "POST")
    @ResponseBody
    public ResponseEntity<?> inspect(@RequestBody @ApiParam(value = "侦测服务列表", required = true) List<String> service) {
        return doInspect(service);
    }

    private ResponseEntity<?> doInspect(InspectorEntity inspectorEntity) {<FILL_FUNCTION_BODY>}

    private ResponseEntity<?> doInspect(List<String> service) {
        try {
            String result = inspectorResource.inspect(service);

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

        try {
            InspectorEntity result = inspectorResource.inspect(inspectorEntity);

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