class DatabaseService {

    public ServiceResult<List<String>> getDBCatalogs(Long dbsetId) throws Exception {
        if (null == dbsetId) {
            return ServiceResult.success(ListUtils.EMPTY_LIST);
        }
        DataBaseInfo dataBaseInfo = dataBaseDao.getMasterCologByDatabaseSetId(dbsetId);
        if (null == dataBaseInfo) {
            return ServiceResult.fail("未找到对应的表,请添加表关联！！");
        }
        return getDBCatalogsByDbId(dataBaseInfo.getId());
    }

}