You need to sign in or sign up before continuing.
yong-hu-xue-qi.md 5.19 KB

用户学期报告饼图

接口地址

{server}/bigd/user/{user_id}/semester/report/course

GET请求

参数 类型 必填 说明 示例
user_id Long 用户id
md5 String md5(user_id+semester)
semester String MONTH,SEMESTER,ALL
start_line String 学期开始时间 2017-01-01

成功返回值

类型 必填 说明 示例
type String 饼图类型
name String 饼图显示名字
list List 饼图内数据
text String 饼图内个部显示文字
color String 颜色16进制 #98ce02
scale Long 百分比 10
[
    {
        "type": "class_situation",
        "name": "上课情况",
        "list": [
            {
                "text": "外教1对1",
                "color": "#98ce02",
                "scale": 0
            },
            {
                "text": "中教1对1",
                "color": "#999999",
                "scale": 0
            },
            {
                "text": "外教小班课",
                "color": "#fc6346",
                "scale": 0
            },
            {
                "text": "外教大讲堂",
                "color": "#ff8401",
                "scale": 0
            },
            {
                "text": "外教口语指导",
                "color": "#fcc101",
                "scale": 0
            },
            {
                "text": "自主学习",
                "color": "#21abff",
                "scale": 100
            }
        ]
    },
    {
        "type": "course_structures",
        "name": "课程结构",
        "list": [
            {
                "text": "功能语言短对话",
                "color": "#fbd358",
                "scale": 2
            },
            {
                "text": "场景对话及运用",
                "color": "#fd7156",
                "scale": 1
            },
            {
                "text": "阅读能力综合",
                "color": "#8dd06b",
                "scale": 30
            },
            {
                "text": "词汇及用法",
                "color": "#46beed",
                "scale": 26
            },
            {
                "text": "其它",
                "color": "#929292",
                "scale": 41
            }
        ]
    },
    {
        "type": "excellence_course",
        "name": "培优课程",
        "list": [
            {
                "text": "教材同步",
                "color": "#70c9ff",
                "scale": 9
            },
            {
                "text": "培优课程",
                "color": "#ff6d3b",
                "scale": 91
            }
        ]
    }
]

成功返回值

参数 类型 必填 说明 示例
multiword map 词义相关数据
phrase map 短句相关数据
course map 课程相关数据
semesterReport map 学期预期学习报告

成功 200

{
    "phrase": {
        "list": [
            "alarm clock",
            "no longer"
        ],
        "count": 23
    },
    "course": {
        "list": {
            "WORD": [{
                "courseName": "Unit4 Where is my backpack? 2",
                "cover": "f02a5a3f30563b76fac8d4065c6d3cfd",
                "courseId": "L3NoYXJlL3N2bi_kurrmlZnkuIPkuIog6K-N5rGHLzAwNy5Vbml0NCBXaGVyZSBpcyBteSBiYWNrcGFjaz8gMi54bHN4"
            }],
            "CONVERSATION": [{
                "courseName": "你希望手机能有什么新功能?",
                "cover": "9a458171554e6a5cd14088c191fb9533",
                "courseId": "L3NoYXJlL3N2bi9MZXZlbCA2X0NvbnZlcnNhdGlvbjQvMDA1LuS9oOW4jOacm-aJi-acuuiDveacieS7gOS5iOaWsOWKn-iDve-8ny54bHN4"
            }]
        },
        "type": [
            "CONVERSATION",
            "WORD"
        ],
        "count": 2
    },
    "multiword": {
        "count": 10,
        "list": {
            "托福雅思": [
                "quantum n.",
                "respiratory adj."
            ],
            "高中": [
                "wrinkle n.",
                "physicist n."
            ],
            "其它": [
                "gymnast n.",
                "yoga n."
            ],
            "初中": [
                "of prep.",
                "the other."
            ],
            "大学四六级": [
                "accord v.",
                "perception n."
            ],
            "小学": [
                "science n.",
                "he pron."
            ]
        },
        "type": [
            "托福雅思",
            "大学四六级",
            "高中",
            "初中",
            "小学",
            "其它"
        ]
    },
    "semesterReport": {
        "level": "LEVEL_4",
        "targetF": "能向外教表明对某事的态度",
        "contentF": "比较事物/进行选择/该怎么办/开玩笑/表达对某事的态度...",
        "targetAmount": 80,
        "finishedAmount": 3
    }
}

失败

400

参数 错误,md5 参数错误

404

用户 没有报告