class AuthenticationEndpoint {
    @Autowired
    private AuthenticationResource authenticationResource;

    @RequestMapping(path = "/authenticate", method = RequestMethod.POST)
    @ApiOperation(value = "登录认证", notes = "", response = ResponseEntity.class, httpMethod = "POST")
    @ResponseBody
    public ResponseEntity<?> authenticate(@RequestBody @ApiParam(value = "UserEntity实例", required = true) UserEntity userEntity) {
        return doAuthenticate(userEntity);
    }

    private ResponseEntity<?> doAuthenticate(UserEntity userEntity) {<FILL_FUNCTION_BODY>}
}

        try {
            AuthenticationEntity authenticationEntity = authenticationResource.authenticate(userEntity);

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