class GitEndpoint {
    @Autowired
    private GitResource gitResource;

    @RequestMapping(path = "/map", method = RequestMethod.GET)
    @ApiOperation(value = "获取Git信息的Map格式", notes = "", response = ResponseEntity.class, httpMethod = "GET")
    @ResponseBody
    public ResponseEntity<?> map() {
        return doMap();
    }

    @RequestMapping(path = "/text", method = RequestMethod.GET)
    @ApiOperation(value = "获取Git信息的文本格式", notes = "", response = ResponseEntity.class, httpMethod = "GET")
    @ResponseBody
    public ResponseEntity<?> text() {
        return doText();
    }

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

    private ResponseEntity<?> doText() {
        try {
            String text = gitResource.text();

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

        try {
            Map<String, String> map = gitResource.map();

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