def METHOD_NAME(workspace):
    '''列出项目列表
    Args:
    '''
    project_list = list()
    for key in workspace.projects:
        project_id = workspace.projects[key].id
        project_name = workspace.projects[key].name
        project_desc = workspace.projects[key].desc
        project_type = workspace.projects[key].type
        project_did = workspace.projects[key].did
        project_path = workspace.projects[key].path
        project_create_time = workspace.projects[key].create_time
        attr = {
            "id": project_id,
            "name": project_name,
            "desc": project_desc,
            "type": project_type,
            "did": project_did,
            "path": project_path,
            "create_time": project_create_time
        }
        project_list.append({"id": project_id, "attr": attr})
    return {'status': 1, 'projects': project_list}