class DatabaseController {

    @RequestMapping(value = "/page/list", method = RequestMethod.POST)
    public ServiceResult<ListResult<DataBaseView>> getDBListByGroupId(@RequestBody Paging<DataBaseInfo> paging, @CurrentUser LoginUser loginUser) throws SQLException {
        if (permissionService.isManagerById(loginUser.getId())) {
            return ServiceResult.success(databaseService.findDbPageList(paging));
        }
        return ServiceResult.success(databaseService.findDbPageListByUserId(paging, loginUser.getId()));
    }

}