biaoti

unit_list: [{

                id: "2", //目录ID
                name: "目录名称1", //目录名称
                seq: 1,  //目录的顺序
                chapter_list: [{
                    id: 1259,
                    name: "大哭大哭大哭大哭",
                    learn_method:1,   //课堂模式 1.现场视频直播+讲义;2.录像视频直播+讲义;3.现场视频直播,无讲义;4.录像视频直播,无讲义;5.现场音频直播+讲义;6.双视频直播;7.视频点播;8.音频点播; 9考试;
                    video_num: 0,
                    live_status: 0,
                    start_up_status: 0,
                    resource_count: 1, //资料数
                    exam_count: 1, //练习数
                    handout_count: 1, //讲义数
                    status_mean: "未直播",
                    start_time: "12444444",
                    end_time: "12444499",
                    class_teacher_list: [{
                        teacher_name: "大灯",
                        teacher_uid: 30209136
                    }],
                    allow_test: 0,   //是否允许试听,1 允许 0 不允许
                    attachment_list: [{  //附件列表
                        type: "test", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                        data_list: [{
                            fileid: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                            filename: "\u4f3c\u4e4e\u662f\u73a9\u7b11",
                            file_size: 12,
                            name: "\u6570\u5b66\u8003\u8bd5.sql",
                            s_thumb: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                            seq: 1,
                            paper_id: 122,
                            answer_time: 20,
                            time_type: 1,
                            duration: 300000,
                            url:'-1'
                        }],
                    },{  //附件列表
                        type: "handout", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                        data_list: [{
                            fileid: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                            filename: "\u4f3c\u4e4e\u662f\u73a9\u7b11",
                            file_size: 12,
                            name: "\u6570\u5b66\u8003\u8bd5.sql",
                            s_thumb: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                            seq: 1,
                            paper_id: 122,
                            answer_time: 20,
                            time_type: 1,
                            duration: 300000,
                            url:'0'
                        }],
                    },
                        {  //附件列表
                            type: "video", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                            data_list: [{
                                fileid: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                                filename: "\u4f3c\u4e4e\u662f\u73a9\u7b11",
                                file_size: 12,
                                name: "\u6570\u5b66\u8003\u8bd5.sql",
                                s_thumb: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                                seq: 1,
                                paper_id: 122,
                                answer_time: 20,
                                time_type: 1,
                                duration: 300000,
                                url:'http://cdn.xnwimg.com/down/f:{5FBD356B-4CA0-21EF-5CE9-CBE3A7710DD2}/ct:0/网络爬虫项目实训:看我如何下载韩寒博客文章Python视频 02.mp4'
                            }],
                        },{  //附件列表
                            type: "handout", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                            data_list: [{
                                fileid: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                                filename: "\u4f3c\u4e4e\u662f\u73a9\u7b11",
                                file_size: 12,
                                name: "\u6570\u5b66\u8003\u8bd5.sql",
                                s_thumb: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                                seq: 1,
                                paper_id: 122,
                                answer_time: 20,
                                time_type: 1,
                                duration: 300000,
                                url:'123'
                            }],
                        }],
                    is_delete: true,
                    is_modify: true
                },{
                    id: 1259,
                    name: "大哭大哭大哭大哭2",
                    learn_method:1,   //课堂模式 1.现场视频直播+讲义;2.录像视频直播+讲义;3.现场视频直播,无讲义;4.录像视频直播,无讲义;5.现场音频直播+讲义;6.双视频直播;7.视频点播;8.音频点播; 9考试;
                    video_num: 0,
                    live_status: 0,
                    start_up_status: 0,
                    resource_count: 1, //资料数
                    exam_count: 1, //练习数
                    handout_count: 1, //讲义数
                    status_mean: "未直播",
                    start_time: "12444444",
                    end_time: "12444499",
                    class_teacher_list: [{
                        teacher_name: "大灯",
                        teacher_uid: 30209136
                    }],
                    allow_test: 0,   //是否允许试听,1 允许 0 不允许
                    attachment_list: [{  //附件列表
                        type: "test", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                        data_list: [{
                            fileid: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                            filename: "\u4f3c\u4e4e\u662f\u73a9\u7b11",
                            file_size: 12,
                            name: "\u6570\u5b66\u8003\u8bd5.sql",
                            s_thumb: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                            seq: 1,
                            paper_id: 122,
                            answer_time: 20,
                            time_type: 1,
                            duration: 300000,
                            url:'-1'
                        }],
                    },{  //附件列表
                        type: "handout", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                        data_list: [{
                            fileid: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                            filename: "\u4f3c\u4e4e\u662f\u73a9\u7b11",
                            file_size: 12,
                            name: "\u6570\u5b66\u8003\u8bd5.sql",
                            s_thumb: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                            seq: 1,
                            paper_id: 122,
                            answer_time: 20,
                            time_type: 1,
                            duration: 300000,
                            url:'0'
                        }],
                    },
                        {  //附件列表
                            type: "video", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                            data_list: [{
                                fileid: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                                filename: "\u4f3c\u4e4e\u662f\u73a9\u7b11",
                                file_size: 12,
                                name: "\u6570\u5b66\u8003\u8bd5.sql",
                                s_thumb: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                                seq: 1,
                                paper_id: 122,
                                answer_time: 20,
                                time_type: 1,
                                duration: 300000,
                                url:'http://cdn.xnwimg.com/down/f:{5FBD356B-4CA0-21EF-5CE9-CBE3A7710DD2}/ct:0/网络爬虫项目实训:看我如何下载韩寒博客文章Python视频 02.mp4'
                            }],
                        }],
                    is_delete: true,
                    is_modify: true
                },
                    {
                        id: 1254,
                        name: "大哭大哭大哭大哭3",
                        learn_method:1,   //课堂模式 1.现场视频直播+讲义;2.录像视频直播+讲义;3.现场视频直播,无讲义;4.录像视频直播,无讲义;5.现场音频直播+讲义;6.双视频直播;7.视频点播;8.音频点播; 9考试;
                        video_num: 0,
                        live_status: 0,
                        start_up_status: 0,
                        resource_count: 1, //资料数
                        exam_count: 1, //练习数
                        handout_count: 1, //讲义数
                        status_mean: "未直播",
                        start_time: "12444444",
                        end_time: "12444499",
                        class_teacher_list: [{
                            teacher_name: "大灯",
                            teacher_uid: 30209136
                        }],
                        allow_test: 0,   //是否允许试听,1 允许 0 不允许
                        attachment_list: [{  //附件列表
                            type: "video", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                            data_list: [{
                                fileid: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                                filename: "\u4f3c\u4e4e\u662f\u73a9\u7b11",
                                file_size: 12,
                                name: "\u6570\u5b66\u8003\u8bd5.sql",
                                s_thumb: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                                seq: 1,
                                paper_id: 122,
                                answer_time: 20,
                                time_type: 1,
                                duration: 300000,
                                url:'http://cdn.xnwimg.com/down/f:%7B5B6C7C72-39CF-7043-5742-F3879F6DAA41%7D/%E9%BB%84%E7%B2%A4%E6%80%9D%20-%20%E6%83%85%E6%AD%8C%E7%8E%8B%20%28%E5%A5%B3%E7%89%88%29.mp3.mp4'
                            }],
                        }],
                        is_delete: true,
                        is_modify: true
                    }]
            },
                {
                    id: "3", //目录ID
                    name: "目录名称2", //目录名称
                    seq: 2,  //目录的顺序
                    chapter_list: [{
                        id: 1259,
                        name: "大哭大哭大哭大哭",
                        learn_method:1,   //课堂模式 1.现场视频直播+讲义;2.录像视频直播+讲义;3.现场视频直播,无讲义;4.录像视频直播,无讲义;5.现场音频直播+讲义;6.双视频直播;7.视频点播;8.音频点播; 9考试;
                        video_num: 0,
                        live_status: 0,
                        start_up_status: 0,
                        resource_count: 1, //资料数
                        exam_count: 1, //练习数
                        handout_count: 1, //讲义数
                        status_mean: "未直播",
                        start_time: "12444444",
                        end_time: "12444499",
                        class_teacher_list: [{
                            teacher_name: "大灯",
                            teacher_uid: 30209136
                        }],
                        allow_test: 0,   //是否允许试听,1 允许 0 不允许
                        attachment_list: [{  //附件列表
                            type: "resource", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                            data_list: [{
                                fileid: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                                filename: "\u4f3c\u4e4e\u662f\u73a9\u7b11",
                                file_size: 12,
                                name: "\u6570\u5b66\u8003\u8bd5.sql",
                                s_thumb: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                                seq: 1,
                                paper_id: 122,
                                answer_time: 20,
                                time_type: 1,
                                duration: 300000,
                                url:'123'
                            }],
                        },{  //附件列表
                            type: "test", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                            data_list: [{
                                fileid: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                                filename: "\u4f3c\u4e4e\u662f\u73a9\u7b11",
                                file_size: 12,
                                name: "\u6570\u5b66\u8003\u8bd5.sql",
                                s_thumb: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                                seq: 1,
                                paper_id: 122,
                                answer_time: 20,
                                time_type: 1,
                                duration: 300000,
                                url:'1212'
                            }],
                        }],
                        is_delete: true,
                        is_modify: true
                    },
                        {
                            id: 1259,
                            name: "大哭大哭大哭大哭4",
                            learn_method:1,   //课堂模式 1.现场视频直播+讲义;2.录像视频直播+讲义;3.现场视频直播,无讲义;4.录像视频直播,无讲义;5.现场音频直播+讲义;6.双视频直播;7.视频点播;8.音频点播; 9考试;
                            video_num: 0,
                            live_status: 0,
                            start_up_status: 0,
                            resource_count: 1, //资料数
                            exam_count: 1, //练习数
                            handout_count: 1, //讲义数
                            status_mean: "未直播",
                            start_time: "12444444",
                            end_time: "12444499",
                            class_teacher_list: [{
                                teacher_name: "大灯",
                                teacher_uid: 30209136
                            }],
                            allow_test: 0,   //是否允许试听,1 允许 0 不允许
                            attachment_list: [{  //附件列表
                                type: "audio", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                                data_list: [{
                                    fileid: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                                    filename: "\u4f3c\u4e4e\u662f\u73a9\u7b11",
                                    file_size: 12,
                                    name: "\u6570\u5b66\u8003\u8bd5.sql",
                                    s_thumb: "{EE3F3CF3-C6B6-4A22-2B94-7E99B3205570}",
                                    seq: 1,
                                    paper_id: 122,
                                    answer_time: 20,
                                    time_type: 1,
                                    duration: 300000,
                                    url:'http://cdn.xnwimg.com/down/f:{5FBD356B-4CA0-21EF-5CE9-CBE3A7710DD2}/ct:0/网络爬虫项目实训:看我如何下载韩寒博客文章Python视频 02.mp4'
                                }],
                            }],
                            is_delete: true,
                            is_modify: true
                        }]
                }],

========================================================================
attachmentList:[

                [
                    {
                        type: "--", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                        url:''
                    },
                    {
                        type: "--", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                        url:''
                    },
                    {
                        type: "播放", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                        url:'2'
                    }
                ],
                [
                    {
                        type: "播放", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                        url:'3'
                    },
                    {
                        type: "--", //resource:资料;handout:讲义;test:练习;video:视频;audio:音频;exam:试卷
                        url:''
                    }
                ]
            ],
    原文作者:北京北京
    原文地址: https://segmentfault.com/a/1190000018358414
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞