class UsersController extends BaseController {

    @GetMapping(value = "/list-all")
    @ResponseStatus(HttpStatus.OK)
    @ApiException(USER_LIST_ERROR)
    public Result listAll(@RequestAttribute(value = Constants.SESSION_USER) User loginUser) {
        logger.info("login user {}, user list", loginUser.getUserName());
        Map<String, Object> result = usersService.queryUserList(loginUser);
        return returnDataList(result);
    }

}