def get_all_projects_basic_info(tb_client, project_id):
    """
    获取所有项目基础信息 project_id, project_name, organization_id, default_room_id
    :param tb_client: Teambition object
    :param project_id: Teambition object
    :return:
    """
    if project_id is None:
        projects = tb_client.get_projects_basic_info()
    else:
        projects = [tb_client.get_project_basic_info(project_id)]
    project_infos = []
    for project in projects:
        default_room = tb_client.get_project_group_chat_info(project_id=
            project['_id'])
        project_infos.append({'project_id': project['_id'], 'name': project
            ['name'], 'root_dir_id': project['_rootCollectionId'],
            'organization_id': project['_organizationId'],
            'default_room_id': default_room['_id']})
    return project_infos
