公共接口平台 logo 公共接口平台

学生端

学员详情、登入、登出、所在班级、课程表、点播记录


学员登录

api/v1/student/login POST

Query Parameters

Parameter Status Description
email required 邮箱地址
password required 密码

Example response (200):

{
    "code": 0,
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjliY2MxMWE5ODljNzM0MzhiNTA0ZmFkYTMyNTAzYWFjMWEzMGI4ZDU0ODRiNTc1MDg4MTM3MTJmYTBiMTcxNDEzMWY0ZmJmYWYxODg4ZDIxIn0.eyJhdWQiOiIxIiwianRpIjoiOWJjYzExYTk4OWM3MzQzOGI1MDRmYWRhMzI1MDNhYWMxYTMwYjhkNTQ4NGI1NzUwODgxMzcxMmZhMGIxNzE0MTMxZjRmYmZhZjE4ODhkMjEiLCJpYXQiOjE1NTM4MzY0NTYsIm5iZiI6MTU1MzgzNjQ1NiwiZXhwIjoxNTg1NDU4ODU2LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.WATSfiM_YV0DAGvBjIGm1T8NxrdTSo0EobzLJM0V78d4ZDw1XLy3xTKxhmuOsJUj_C10367ytfO3i0OdL91KmplkfKajqrajNKcjAtBA1IjArZTk6mb0q8LaNKG91i_8tVm9OF00LmoSq-sxROs-G2CtUBRDwtOgEvj_qnDYIPUDrpBby1EeDaEYmGy-IRbg8YNEi-EdCcObdR19Kw9YevW4xZC-MvkQqb-arVDbqbbsq4Ch3CuYXDVKNzfH0Fwt3kSptq2AHx4E94JB1dFuPP-erAnEjrqG82HPUN2d85okEBwi5Bo-N4mNuIgXlKKyPgAKN2hCoXwiJ2yqqpOxxeNY5wtouNahSlee811tlBMyzo45A5XZRnPF1VcrikjZVLjeZBNz8cOCs3i16hD5xtNZnXBfU_O0KV5AbAj-O__Af5ZWxBXcy9wskDx98_A1f42m2DKJ08rsw369Dm43iJLkfzvtdGu7XZ9kD2TwvIW4l94LMlji9t4oDyWZzqs-_HkvL9ImFaVlOIkpTutuJNlDYdanoqiuz-tzx7Y5gQYzwxAY_ZWl5bHLDT2zDM-tCrQMQsB-yW_BZX7InxCqKwPMwylCe9UtZRroND0UKxLlwRyH-ja8hAP49DOpGKK8K5ZTQ8u9ev4ho74opuBGZLVB4FM-s2iDarbM_UTj1Pw"
}

学员登出

api/v1/student/logout POST

Example response (200):

{
    "code": 0
}

学员基本信息

api/v1/guard/student/profile POST

Example response (200):


{
    "id": 1,
    "name": "公共测试",
    "email": "test-student@tokyo-elite.com",
    "phone": "183****5320",
    "avatar": "http://127.0.0.1:8202/storage/avatar/IMZvBQKOsa5h6fPjTRkSmQIAHxqdfMtCwm234KNY.jpeg",
    "created_at": "2018-12-28 13:35:13",
    "updated_at": "2019-02-26 12:21:03"
}

学员所在班级

api/v1/guard/student/classes POST

Example response (200):

[
    {
        "id": 6,
        "course_id": 5,
        "label": "2019期",
        "headmaster_id": 10,
        "price": 0,
        "volume": 30,
        "description": "",
        "published_at": "2019-01-14 10:53:52",
        "created_at": "2018-12-28 15:59:48",
        "updated_at": "2019-01-14 10:53:52",
        "laravel_through_key": 1,
        "with_course": {
            "id": 5,
            "label": "私立经济学研究科",
            "cover": "http://crm.oe.com/storage/uploads/OZMTIbgN3rOq72CacKIZeYrMzhLSuPjNQGcAuxPI.jpeg",
            "category": 18,
            "major": 10,
            "type": 3,
            "description": "日语口语强化课程,是为了让学生更快的适应日本的学习和生活,提高日语逻辑思维,顺利通过校内考面试而开设的课程。课程分为日常会话和校内考面试口语指导。日常会话练习能够习惯日本人的思维方式和说话习惯。校内考面试口语能够针对性的辅导学生校内考要点,能够在面试教授面前从容镇定,准确的表达自己的观点。保证学生顺利入学。该课程属于网络直播课程,学员可以不受时间,空间限制直接和日本的外教老师进行口语演练。",
            "created_at": "2018-12-28 15:57:32"
        }
    },
    {
        "id": 10,
        "course_id": 8,
        "label": "2019期",
        "headmaster_id": 8,
        "price": 0,
        "volume": 20,
        "description": "",
        "published_at": "2019-01-08 13:35:24",
        "created_at": "2019-01-04 11:07:21",
        "updated_at": "2019-01-08 13:35:24",
        "laravel_through_key": 1,
        "with_course": {
            "id": 8,
            "label": "大学院过去问实战",
            "cover": "http://crm.oe.com/storage/uploads/NtS2qxSJ4gcCG5c9juXJEUblGOAAI2h5hF6t7tTb.jpeg",
            "category": 20,
            "major": 10,
            "type": 3,
            "description": "",
            "created_at": "2019-01-04 11:07:00"
        }
    }
]

学员课表

api/v1/guard/student/schedule POST

Query Parameters

Parameter Status Description
type optional optional 时间段(today:当天, tomorrow:明天, week:本周, nextWeek: 下周, month:本月, nextMonth: 下月)

Example response (200):

[
    {
        "id": 1,
        "period_id": 6,
        "label": "第1课时",
        "teacher_id": 9,
        "node": 1,
        "start_time": "2019-03-06 17:30:00",
        "duration": 90,
        "period_label": "2019期",
        "course_id": 5,
        "headmaster_id": 10,
        "course_label": "私立经济学研究科",
        "course_coverImg": "/storage/uploads/OZMTIbgN3rOq72CacKIZeYrMzhLSuPjNQGcAuxPI.jpeg",
        "time": "3周前"
    },
    {
        "id": 31,
        "period_id": 6,
        "label": "第2课时",
        "teacher_id": 4,
        "node": 2,
        "start_time": "2019-03-15 19:30:00",
        "duration": 120,
        "period_label": "2019期",
        "course_id": 5,
        "headmaster_id": 10,
        "course_label": "私立经济学研究科",
        "course_coverImg": "/storage/uploads/OZMTIbgN3rOq72CacKIZeYrMzhLSuPjNQGcAuxPI.jpeg",
        "time": "1周前"
    }
]

学员点播记录

api/v1/guard/student/player/record POST

Query Parameters

Parameter Status Description
pageIndex optional optional 页码
pageSize optional optional 每页显示数量
count optional optional 是否返回结果集数量(Y:是 N:否)

Example response (200):

{
    "count": 0,
    "data": []
}