NAV
bash javascript

Info

Welcome to the generated API reference. Get Postman Collection

course_type 课程类别

list course_type 课程类别列表

超管学生讲师

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/courseType" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/courseType"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": [
        {
            "id": 1,
            "is_subtype": false,
            "title": "微积分",
            "title_en": "Calculus",
            "sub_course_types": [
                {
                    "id": 2,
                    "is_subtype": true,
                    "title": "微积分",
                    "parent_id": 1
                }
            ]
        },
        {
            "id": 3,
            "is_subtype": false,
            "title": "线性代数",
            "title_en": "Linear Algebra",
            "sub_course_types": [
                {
                    "id": 4,
                    "is_subtype": true,
                    "title": "线性代数",
                    "parent_id": 3
                }
            ]
        },
        {
            "id": 5,
            "is_subtype": false,
            "title": "概率论与数理统计",
            "title_en": "Probability and Statistics",
            "sub_course_types": [
                {
                    "id": 6,
                    "is_subtype": true,
                    "title": "概率论与数理统计",
                    "parent_id": 5
                }
            ]
        },
        {
            "id": 7,
            "is_subtype": false,
            "title": "工科物理",
            "title_en": "Engineering Physics",
            "sub_course_types": [
                {
                    "id": 8,
                    "is_subtype": true,
                    "title": "工科物理",
                    "parent_id": 7
                }
            ]
        },
        {
            "id": 9,
            "is_subtype": false,
            "title": "化学类",
            "title_en": "Chemistry",
            "sub_course_types": [
                {
                    "id": 10,
                    "is_subtype": true,
                    "title": "无机化学",
                    "parent_id": 9
                },
                {
                    "id": 11,
                    "is_subtype": true,
                    "title": "物理化学",
                    "parent_id": 9
                },
                {
                    "id": 22,
                    "is_subtype": true,
                    "title": "普通化学",
                    "parent_id": 9
                }
            ]
        },
        {
            "id": 12,
            "is_subtype": false,
            "title": "计算机类",
            "title_en": "Computer Science",
            "sub_course_types": [
                {
                    "id": 13,
                    "is_subtype": true,
                    "title": "数据与计算思维基础",
                    "parent_id": 12
                },
                {
                    "id": 14,
                    "is_subtype": true,
                    "title": "C程序设计",
                    "parent_id": 12
                },
                {
                    "id": 15,
                    "is_subtype": true,
                    "title": "C++程序设计",
                    "parent_id": 12
                },
                {
                    "id": 16,
                    "is_subtype": true,
                    "title": "Python程序设计",
                    "parent_id": 12
                }
            ]
        },
        {
            "id": 17,
            "is_subtype": false,
            "title": "制图类",
            "title_en": "Technical Drawing",
            "sub_course_types": [
                {
                    "id": 18,
                    "is_subtype": true,
                    "title": "机械制图",
                    "parent_id": 17
                },
                {
                    "id": 19,
                    "is_subtype": true,
                    "title": "工程制图",
                    "parent_id": 17
                }
            ]
        },
        {
            "id": 20,
            "is_subtype": false,
            "title": "大学英语",
            "title_en": "College English",
            "sub_course_types": [
                {
                    "id": 21,
                    "is_subtype": true,
                    "title": "大学英语",
                    "parent_id": 20
                }
            ]
        }
    ]
}

HTTP Request

GET api/schedule/courseType

store course_type 新建课程类别信息

超管

Example request:

curl -X POST \
    "https://ustb-xueye.cerallin.top/api/schedule/courseType" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/courseType"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 403,
    "errorMessage": "禁止访问"
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

Example response (200):

{
    "success": false,
    "errorCode": "1001",
    "errorMessage": "模型保存失败"
}

HTTP Request

POST api/schedule/courseType

show course_type 显示课程类别信息

超管

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/courseType/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/courseType/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 403,
    "errorMessage": "禁止访问"
}

Example response (200):

{
    "success": false,
    "errorCode": "1001",
    "errorMessage": "模型保存失败"
}

HTTP Request

GET api/schedule/courseType/{id}

update course_type 更新课程类别信息

超管

Example request:

curl -X PUT \
    "https://ustb-xueye.cerallin.top/api/schedule/courseType/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/courseType/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 403,
    "errorMessage": "禁止访问"
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

HTTP Request

PUT api/schedule/courseType/{id}

PATCH api/schedule/courseType/{id}

delete course_type 删除课程类别信息

超管

Example request:

curl -X DELETE \
    "https://ustb-xueye.cerallin.top/api/schedule/courseType/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/courseType/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 403,
    "errorMessage": "禁止访问"
}

Example response (200):

{
    "success": false,
    "errorCode": "1002",
    "errorMessage": "模型删除失败"
}

HTTP Request

DELETE api/schedule/courseType/{id}

list course_type main 大类课程类别列表

超管学生讲师

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/query/courseType" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/query/courseType"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": [
        {
            "id": 1,
            "title": "微积分",
            "title_en": "Calculus"
        },
        {
            "id": 3,
            "title": "线性代数",
            "title_en": "Linear Algebra"
        },
        {
            "id": 5,
            "title": "概率论与数理统计",
            "title_en": "Probability and Statistics"
        },
        {
            "id": 7,
            "title": "工科物理",
            "title_en": "Engineering Physics"
        },
        {
            "id": 9,
            "title": "化学类",
            "title_en": "Chemistry"
        },
        {
            "id": 12,
            "title": "计算机类",
            "title_en": "Computer Science"
        },
        {
            "id": 17,
            "title": "制图类",
            "title_en": "Technical Drawing"
        },
        {
            "id": 20,
            "title": "大学英语",
            "title_en": "College English"
        }
    ]
}

HTTP Request

GET api/schedule/query/courseType

course 课程

list course all 全部用户的全部课程列表


Requires authentication

超管

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/course" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"curPage":11,"perPage":12,"startDate":"2024-11-21","endDate":"2024-11-21","status":6}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/course"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "curPage": 11,
    "perPage": 12,
    "startDate": "2024-11-21",
    "endDate": "2024-11-21",
    "status": 6
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 403,
    "errorMessage": "禁止访问"
}

HTTP Request

GET api/schedule/course

Body Parameters

Parameter Type Status Description
curPage integer optional default 1
perPage integer optional default 10
startDate date optional date_format:Y-m-d default 本周周一
endDate date optional date_format:Y-m-d default 下下周周一 (+14)
status integer optional default 1

create course 新建课程

只有空日程才能预约。

新建的课程状态为“进行中”。全部状态如下:

申请中: 0 // 学生提交了申请,等待教师同意

进行中: 1 // 教师已同意,等待课程开始

待反馈: 2 // 等待教师填写反馈

已结束: 3 // 教师已反馈,课程的生命周期彻底结束

已取消: 4 // 学生课前取消

已违约: 5 // 学生旷课


Requires authentication

超管学生讲师

Example request:

curl -X POST \
    "https://ustb-xueye.cerallin.top/api/schedule/course" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"schedule_id":3,"course_type":6,"room_id":2}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/course"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "schedule_id": 3,
    "course_type": 6,
    "room_id": 2
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 422,
    "errorMessage": "The given data was invalid.",
    "data": {
        "room_id": [
            "room id 必须是一个字符串。"
        ]
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

Example response (200):

{
    "success": false,
    "errorCode": "1001",
    "errorMessage": "课程保存失败"
}

Example response (200):

{
    "success": false,
    "errorCode": "1001",
    "errorMessage": "日程更新失败"
}

Example response (200):

{
    "success": false,
    "errorCode": "1003",
    "errorMessage": "日程已经被占用"
}

HTTP Request

POST api/schedule/course

Body Parameters

Parameter Type Status Description
schedule_id integer required 日程ID
course_type integer required 课程类型ID,必须是子类
room_id integer required 教室ID

show course 显示课程


Requires authentication

超管学生讲师

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/course/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/course/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": {
        "id": 1,
        "title": "Ab repellat omnis dicta qui quod fugit.",
        "date": "2024-11-27",
        "memo": null,
        "teacher_memo": null,
        "period": {
            "position": 4,
            "start": "15:20",
            "end": "16:55"
        },
        "room": {
            "id": 3,
            "location": "学活230",
            "amount": 5
        },
        "student": {
            "id": 1,
            "name": "强玉英",
            "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png",
            "student_number": "41956526",
            "major": null,
            "institute": null,
            "phone_number": null
        },
        "teacher": {
            "id": 10,
            "name": "阎桂香",
            "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
        },
        "course_type": {
            "id": 5,
            "title": "概率论与数理统计",
            "title_en": "Probability and Statistics"
        },
        "sub_course_type": {
            "id": 6,
            "title": "概率论与数理统计"
        },
        "status": "已结束",
        "started": false,
        "ended": false
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

HTTP Request

GET api/schedule/course/{id}

update course 更新课程

NOT Implemented


Requires authentication

超管学生讲师

Example request:

curl -X PUT \
    "https://ustb-xueye.cerallin.top/api/schedule/course/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/course/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 3000,
    "errorMessage": "该接口暂不开放。 "
}

HTTP Request

PUT api/schedule/course/{id}

PATCH api/schedule/course/{id}

delete course 删除课程


Requires authentication

超管讲师

Example request:

curl -X DELETE \
    "https://ustb-xueye.cerallin.top/api/schedule/course/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/course/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": {
        "msg": "删除成功"
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "1002",
    "errorMessage": "模型删除失败"
}

HTTP Request

DELETE api/schedule/course/{id}

list course student 学生课程列表

排序规则为按天正序,同一天的课程按节次正序。


Requires authentication

超管学生

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/query/studentCourseIndex" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"curPage":1,"perPage":16,"startDate":"2024-11-21","endDate":"2024-11-21"}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/query/studentCourseIndex"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "curPage": 1,
    "perPage": 16,
    "startDate": "2024-11-21",
    "endDate": "2024-11-21"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": [],
    "meta": {
        "curPage": 1,
        "perPage": 16,
        "total": 0
    }
}

HTTP Request

GET api/schedule/query/studentCourseIndex

Body Parameters

Parameter Type Status Description
curPage integer optional default 1
perPage integer optional default 10
startDate date optional date_format:Y-m-d default 本周周一
endDate date optional date_format:Y-m-d default 下下周周一 (+14)

list course teacher 教师课程列表


Requires authentication

超管讲师

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/query/teacherCourseIndex" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"curPage":20,"perPage":15,"startDate":"2024-11-21","endDate":"2024-11-21","status":15}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/query/teacherCourseIndex"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "curPage": 20,
    "perPage": 15,
    "startDate": "2024-11-21",
    "endDate": "2024-11-21",
    "status": 15
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 422,
    "errorMessage": "The given data was invalid.",
    "data": {
        "status": [
            "status 不能大于 10。"
        ]
    }
}

HTTP Request

GET api/schedule/query/teacherCourseIndex

Body Parameters

Parameter Type Status Description
curPage integer optional default 1
perPage integer optional default 10
startDate date optional date_format:Y-m-d default 本周周一
endDate date optional date_format:Y-m-d default 下下周周一 (+14)
status integer optional default 1

example API 示例API

这是一个示例API,是一切的基础

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/example" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/example"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": [
        "这里相对自由"
    ]
}

Example response (401):

{
    "success": false,
    "data": {
        "message": "Unauthenticated."
    }
}

Example response (404):

{
    "errorCode": 404,
    "errorMessage": "Page not found.",
    "data": {
        "uri": "api\/example",
        "method": "GET"
    }
}

Example response (500):

{
    "success": false,
    "data": {
        "message": "Server Error"
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

Example response (200):

{
    "success": false,
    "errorCode": "1001",
    "errorMessage": "模型保存失败"
}

Example response (200):

{
    "success": false,
    "errorCode": "1002",
    "errorMessage": "模型删除失败"
}

Example response (200):

{
    "success": false,
    "errorCode": "1003",
    "errorMessage": "通常的逻辑错误"
}

Example response (200):

{
    "success": false,
    "errorCode": "2001",
    "errorMessage": "微信认证失败"
}

Example response (200):

{
    "success": false,
    "errorCode": "2002",
    "errorMessage": "微信解密失败"
}

HTTP Request

GET api/example

feedback 课程反馈

list feedback 课程反馈列表


Requires authentication

超管

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/feedback" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/feedback"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 403,
    "errorMessage": "禁止访问"
}

HTTP Request

GET api/schedule/feedback

create feedback 新建课程反馈


Requires authentication

超管讲师

Example request:

curl -X POST \
    "https://ustb-xueye.cerallin.top/api/schedule/feedback" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/feedback"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 422,
    "errorMessage": "The given data was invalid.",
    "data": {
        "json": [
            "json 不能为空。"
        ]
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "1001",
    "errorMessage": "模型保存失败"
}

HTTP Request

POST api/schedule/feedback

show feedback 显示课程反馈


Requires authentication

超管学生讲师

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/feedback/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/feedback/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 404,
    "errorMessage": "No query results for model [App\\Models\\CourseFeedback] 1"
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

HTTP Request

GET api/schedule/feedback/{id}

update feedback 更新课程反馈


Requires authentication

超管讲师

Example request:

curl -X PUT \
    "https://ustb-xueye.cerallin.top/api/schedule/feedback/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/feedback/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 422,
    "errorMessage": "The given data was invalid.",
    "data": {
        "json": [
            "json 不能为空。"
        ]
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

Example response (200):

{
    "success": false,
    "errorCode": "1001",
    "errorMessage": "模型保存失败"
}

HTTP Request

PUT api/schedule/feedback/{id}

PATCH api/schedule/feedback/{id}

file 文件上传

upload single image 单个图片上传

超管

Example request:

curl -X POST \
    "https://ustb-xueye.cerallin.top/api/upload/image" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"image":"testing.png"}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/upload/image"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "image": "testing.png"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 403,
    "errorMessage": "禁止访问"
}

HTTP Request

POST api/upload/image

Body Parameters

Parameter Type Status Description
image image required 格式为jpeg,png,jpg,gif的最大2M的图片

upload multiple images 批量图片上传

超管

Example request:

curl -X POST \
    "https://ustb-xueye.cerallin.top/api/upload/imageBatch" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"image":["testing.png"]}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/upload/imageBatch"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "image": [
        "testing.png"
    ]
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 403,
    "errorMessage": "禁止访问"
}

HTTP Request

POST api/upload/imageBatch

Body Parameters

Parameter Type Status Description
image.* image required 格式为jpeg,png,jpg,gif的最大2M的图片

general

微认证回调

超管

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/sis-callback" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/sis-callback"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (500):

{
    "success": false,
    "data": {
        "message": "Server Error"
    }
}

HTTP Request

GET api/sis-callback

login 登录

wechat login 微信登录

获取 api token

超管学生讲师

Example request:

curl -X POST \
    "https://ustb-xueye.cerallin.top/api/login" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"code":"similique","avatarUrl":"magnam"}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/login"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "code": "similique",
    "avatarUrl": "magnam"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true
}

Example response (200):

{
    "success": false,
    "errorCode": "2001",
    "errorMessage": "微信认证失败"
}

HTTP Request

POST api/login

Body Parameters

Parameter Type Status Description
code string required wx.login()得到
avatarUrl string optional optional

sis login 微认证登录,返回一个302链接

超管

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/sis-login" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/sis-login"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (302):

null

Example response (200):

{
    "success": false,
    "errorCode": "2003",
    "errorMessage": "数据查询失败"
}

Example response (200):

{
    "success": false,
    "errorCode": "2004",
    "errorMessage": "数据token更新失败"
}

HTTP Request

GET api/sis-login

phone number 获取手机号

获取 api token

超管学生讲师

Example request:

curl -X POST \
    "https://ustb-xueye.cerallin.top/api/phone" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"code":"consequatur"}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/phone"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "code": "consequatur"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true
}

HTTP Request

POST api/phone

Body Parameters

Parameter Type Status Description
code string required wx.login()得到

user avatar 更新用户头像URL

超管学生讲师

Example request:

curl -X POST \
    "https://ustb-xueye.cerallin.top/api/avatar" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"image":"architecto"}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/avatar"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "image": "architecto"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": {
        "avatarUrl": "http:\/\/somewhere.com\/image.png"
    }
}

HTTP Request

POST api/avatar

Body Parameters

Parameter Type Status Description
image file required 头像文件

user info 获取用户有的没的的信息,兼身份切换。

首先判断用户是否有该身份。 如果有,则存储为最新的默认身份; 如果没有,默认身份变成ID最小的已有身份。 如果用户一个身份也没有(黑户),默认身份更新为101(学生),虽然他永远也登不上去就是了。

超管学生讲师

Example request:

curl -X POST \
    "https://ustb-xueye.cerallin.top/api/info/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/info/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 3001,
    "errorMessage": "你试图访问不属于你的资源:App\\Models\\Role"
}

HTTP Request

POST api/info/{role_id}

period 课程时间

list period 课程时间列表

超管学生讲师

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/period" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/period"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": [
        {
            "id": 1,
            "created_at": null,
            "updated_at": null,
            "position": 1,
            "start": "08:00:00",
            "end": "09:35:00",
            "deleted_at": null
        },
        {
            "id": 2,
            "created_at": null,
            "updated_at": null,
            "position": 2,
            "start": "09:55:00",
            "end": "11:30:00",
            "deleted_at": null
        },
        {
            "id": 3,
            "created_at": null,
            "updated_at": null,
            "position": 3,
            "start": "13:30:00",
            "end": "15:05:00",
            "deleted_at": null
        },
        {
            "id": 4,
            "created_at": null,
            "updated_at": null,
            "position": 4,
            "start": "15:20:00",
            "end": "16:55:00",
            "deleted_at": null
        },
        {
            "id": 5,
            "created_at": null,
            "updated_at": null,
            "position": 5,
            "start": "17:10:00",
            "end": "18:45:00",
            "deleted_at": null
        },
        {
            "id": 6,
            "created_at": null,
            "updated_at": null,
            "position": 6,
            "start": "19:30:00",
            "end": "21:05:00",
            "deleted_at": null
        }
    ]
}

HTTP Request

GET api/schedule/period

show period 显示课程时间

超管学生讲师

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/period/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/period/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": {
        "id": 1,
        "created_at": null,
        "updated_at": null,
        "position": 1,
        "start": "08:00:00",
        "end": "09:35:00",
        "deleted_at": null
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

HTTP Request

GET api/schedule/period/{id}

permissions 权限

list all the permissions 权限列表


Requires authentication

超管

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/permission/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/permission/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 403,
    "errorMessage": "禁止访问"
}

HTTP Request

GET api/permission/list

role list 角色列表


Requires authentication

超管

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/role" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/role"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 403,
    "errorMessage": "禁止访问"
}

HTTP Request

GET api/role

create role 新建角色


Requires authentication

超管

Example request:

curl -X POST \
    "https://ustb-xueye.cerallin.top/api/role" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/role"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 403,
    "errorMessage": "禁止访问"
}

Example response (200):

{
    "success": false,
    "errorCode": "1001",
    "errorMessage": "模型保存失败"
}

HTTP Request

POST api/role

show role 显示角色


Requires authentication

超管

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/role/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/role/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 403,
    "errorMessage": "禁止访问"
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

HTTP Request

GET api/role/{id}

update role 更新角色


Requires authentication

超管

Example request:

curl -X PUT \
    "https://ustb-xueye.cerallin.top/api/role/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/role/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 403,
    "errorMessage": "禁止访问"
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

Example response (200):

{
    "success": false,
    "errorCode": "1001",
    "errorMessage": "模型保存失败"
}

HTTP Request

PUT api/role/{id}

PATCH api/role/{id}

delete role 删除角色


Requires authentication

超管

Example request:

curl -X DELETE \
    "https://ustb-xueye.cerallin.top/api/role/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/role/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 403,
    "errorMessage": "禁止访问"
}

Example response (200):

{
    "success": false,
    "errorCode": "1002",
    "errorMessage": "模型删除失败"
}

HTTP Request

DELETE api/role/{id}

assgin role 指定用户角色


Requires authentication

超管

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/role/api/assign/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"roles":[]}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/role/api/assign/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "roles": []
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 403,
    "errorMessage": "禁止访问"
}

HTTP Request

GET role/api/assign/{id}

Body Parameters

Parameter Type Status Description
roles array required 用户角色数组,形如 [101, 102]

room 课程地点

list room 课程地点列表

超管学生讲师

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/room" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/room"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": [
        {
            "id": 4,
            "location": "其他",
            "amount": 5
        },
        {
            "id": 5,
            "location": "图书馆301",
            "amount": 5
        },
        {
            "id": 1,
            "location": "图书馆401",
            "amount": 5
        },
        {
            "id": 3,
            "location": "学活230",
            "amount": 5
        },
        {
            "id": 2,
            "location": "学活232",
            "amount": 5
        }
    ]
}

HTTP Request

GET api/schedule/room

show room 显示课程地点

超管学生讲师

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/room/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/room/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": {
        "id": 1,
        "location": "图书馆401",
        "amount": 5
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

HTTP Request

GET api/schedule/room/{id}

schedule 日程

list schedule 获取当前用户作为讲师的某日所在周和下周的日程列表。

超管讲师

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/schedule" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"startDate":"2024-11-21","endDate":"2024-11-21","teacher_id":5,"without_occupied":false}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/schedule"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "startDate": "2024-11-21",
    "endDate": "2024-11-21",
    "teacher_id": 5,
    "without_occupied": false
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": [],
    "meta": {
        "curPage": 1,
        "perPage": 10,
        "total": 0
    }
}

HTTP Request

GET api/schedule/schedule

Body Parameters

Parameter Type Status Description
startDate date optional default 本周周一
endDate date optional default 下下周周一 (+14)
teacher_id integer optional 管理员可以指定要查询的教师ID,默认当前用户。
without_occupied boolean optional 是否排除(自己或别人)已预约的日程,默认:是

create schedule 新建日程

超管讲师

Example request:

curl -X POST \
    "https://ustb-xueye.cerallin.top/api/schedule/schedule" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"title":"optio","date":"2024-11-21","period_id":14,"course_type":16,"teacher_id":8,"rooms":[19]}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/schedule"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "title": "optio",
    "date": "2024-11-21",
    "period_id": 14,
    "course_type": 16,
    "teacher_id": 8,
    "rooms": [
        19
    ]
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 422,
    "errorMessage": "The given data was invalid.",
    "data": {
        "period_id": [
            "period id 不能大于 6。"
        ]
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "1001",
    "errorMessage": "模型保存失败"
}

HTTP Request

POST api/schedule/schedule

Body Parameters

Parameter Type Status Description
title string required 标题
date date required date_format:Y-m-d 日期
period_id integer required 节次ID,目前等价于节次编号。不改数据库的情况下没区别
course_type integer required 课程的子分类,所有大分类都有子分类的分类。也就是说存在“英语”的子分类还叫“英语”的情况,注意这两个同名分类的ID不同。
teacher_id integer optional 教师ID,默认当前用户ID
rooms.* integer required 教室ID

show schedule 显示日程

超管讲师

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/schedule/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/schedule/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": {
        "id": 1,
        "title": "Quia modi exercitationem quidem.",
        "date": "2024-11-18 00:00:00",
        "teacher_id": 2,
        "course_type": 13,
        "period_id": 2,
        "course_id": null,
        "created_at": "2024-11-21 15:57:21",
        "updated_at": "2024-11-21 15:57:21",
        "deleted_at": null,
        "teacher_memo": null
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

HTTP Request

GET api/schedule/schedule/{id}

update schedule 更新日程

字段跟create schedule完全一致

超管讲师

Example request:

curl -X PUT \
    "https://ustb-xueye.cerallin.top/api/schedule/schedule/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/schedule/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 422,
    "errorMessage": "The given data was invalid.",
    "data": {
        "title": [
            "标题 不能为空。"
        ],
        "date": [
            "日期 不能为空。"
        ],
        "period_id": [
            "period id 不能为空。"
        ],
        "course_type": [
            "course type 不能为空。"
        ],
        "rooms": [
            "rooms 不能为空。"
        ]
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

Example response (200):

{
    "success": false,
    "errorCode": "1001",
    "errorMessage": "模型保存失败"
}

HTTP Request

PUT api/schedule/schedule/{id}

PATCH api/schedule/schedule/{id}

delete schedule 删除日程

超管讲师

Example request:

curl -X DELETE \
    "https://ustb-xueye.cerallin.top/api/schedule/schedule/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/schedule/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": {
        "msg": "删除成功"
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "1002",
    "errorMessage": "模型删除失败"
}

HTTP Request

DELETE api/schedule/schedule/{id}

list schedule student 获取本周周一开始两周(14天)的日程列表。

超管学生

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/query/studentScheduleIndex" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"teacher_id":3,"course_type":17}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/query/studentScheduleIndex"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "teacher_id": 3,
    "course_type": 17
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": [
        {
            "id": 1599,
            "date": "2024-11-18",
            "title": "Vel repellat dignissimos exercitationem doloribus sint enim explicabo ut.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 938,
            "date": "2024-11-18",
            "title": "Cupiditate qui libero qui laudantium quia quod quas.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1331,
            "date": "2024-11-18",
            "title": "Incidunt et ullam doloremque quia est et autem.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 225,
            "date": "2024-11-18",
            "title": "Velit nostrum quis qui cupiditate nemo.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 289,
            "date": "2024-11-18",
            "title": "Totam rerum accusamus blanditiis est.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 713,
            "date": "2024-11-18",
            "title": "Iste optio commodi inventore possimus.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 578,
            "date": "2024-11-19",
            "title": "Consequatur magni est et perspiciatis rerum.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 481,
            "date": "2024-11-19",
            "title": "Est commodi inventore explicabo voluptas.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 789,
            "date": "2024-11-20",
            "title": "Ipsa nostrum dolor ut deleniti.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1836,
            "date": "2024-11-21",
            "title": "Nam voluptatum nihil est aut molestiae dolore eius.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 302,
            "date": "2024-11-21",
            "title": "Enim sit quo voluptatem est.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 146,
            "date": "2024-11-21",
            "title": "Ipsam ea odio et optio eos est.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 773,
            "date": "2024-11-21",
            "title": "Dolorem nesciunt eius ab nostrum est.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 945,
            "date": "2024-11-21",
            "title": "Vitae illum nesciunt quasi nihil odio voluptate.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 677,
            "date": "2024-11-22",
            "title": "Ea officiis aut aut accusantium.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1661,
            "date": "2024-11-23",
            "title": "Exercitationem illo nihil doloremque incidunt.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1311,
            "date": "2024-11-25",
            "title": "Soluta accusamus dolor esse quia voluptatem.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1974,
            "date": "2024-11-26",
            "title": "Enim praesentium ea voluptatem qui.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 136,
            "date": "2024-11-26",
            "title": "Officia explicabo perferendis magnam magni eos adipisci quis.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 427,
            "date": "2024-11-26",
            "title": "Totam natus labore earum deserunt voluptates nesciunt.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 762,
            "date": "2024-11-27",
            "title": "Laboriosam eos aut possimus eos deleniti nesciunt at.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1860,
            "date": "2024-11-27",
            "title": "Quo quisquam accusantium ipsam minima ducimus sint quibusdam.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1563,
            "date": "2024-11-28",
            "title": "Ut ea ullam saepe molestiae expedita assumenda est.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1073,
            "date": "2024-11-28",
            "title": "Culpa dolor magni qui est incidunt.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 636,
            "date": "2024-11-28",
            "title": "Numquam nihil nam aliquam in sint enim.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 44,
            "date": "2024-11-28",
            "title": "Sunt rerum vitae fugit sed voluptate et voluptatem.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        }
    ]
}

Example response (200):

{
    "success": false,
    "errorCode": "4001",
    "errorMessage": "逻辑错误"
}

HTTP Request

GET api/schedule/query/studentScheduleIndex

Body Parameters

Parameter Type Status Description
teacher_id integer optional 教师ID
course_type integer optional 课程类型ID,必须是大类

list schedule teacher 获取自己作为教师的本周周一开始两周(14天)的日程列表。

超管学生

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/schedule/query/teacherScheduleIndex" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"without_occupied":true}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/schedule/query/teacherScheduleIndex"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "without_occupied": true
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": [
        {
            "id": 917,
            "date": "2024-11-18",
            "title": "Repellat officiis quae repudiandae omnis facere autem commodi.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 14,
                "title": "C程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1599,
            "date": "2024-11-18",
            "title": "Vel repellat dignissimos exercitationem doloribus sint enim explicabo ut.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 713,
            "date": "2024-11-18",
            "title": "Iste optio commodi inventore possimus.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1,
            "date": "2024-11-18",
            "title": "Quia modi exercitationem quidem.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 225,
            "date": "2024-11-18",
            "title": "Velit nostrum quis qui cupiditate nemo.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1331,
            "date": "2024-11-18",
            "title": "Incidunt et ullam doloremque quia est et autem.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1526,
            "date": "2024-11-18",
            "title": "Sint ut veniam omnis sunt recusandae.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 5,
                "title": "概率论与数理统计",
                "title_en": "Probability and Statistics"
            },
            "sub_course_type": {
                "id": 6,
                "title": "概率论与数理统计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 544,
            "date": "2024-11-18",
            "title": "Eum et voluptate enim voluptates.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 289,
            "date": "2024-11-18",
            "title": "Totam rerum accusamus blanditiis est.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1589,
            "date": "2024-11-18",
            "title": "Deserunt et id nesciunt eaque occaecati.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 16,
                "title": "Python程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 516,
            "date": "2024-11-18",
            "title": "Qui enim quaerat temporibus et qui hic.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 11,
                "title": "物理化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 503,
            "date": "2024-11-18",
            "title": "At dignissimos quidem aut et ab aut.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 14,
                "title": "C程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 938,
            "date": "2024-11-18",
            "title": "Cupiditate qui libero qui laudantium quia quod quas.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 340,
            "date": "2024-11-19",
            "title": "Ad in sunt consequatur et.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 10,
                "title": "无机化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 431,
            "date": "2024-11-19",
            "title": "Expedita dolor placeat tempora ea nulla sed.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 11,
                "title": "物理化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1771,
            "date": "2024-11-19",
            "title": "Totam quis vero velit voluptatibus dignissimos deleniti.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 11,
                "title": "物理化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1566,
            "date": "2024-11-19",
            "title": "Fugit culpa pariatur soluta incidunt aut.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 5,
                "title": "概率论与数理统计",
                "title_en": "Probability and Statistics"
            },
            "sub_course_type": {
                "id": 6,
                "title": "概率论与数理统计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1489,
            "date": "2024-11-19",
            "title": "Nihil illo in et consequatur et dolor quo.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1399,
            "date": "2024-11-19",
            "title": "Nesciunt et ipsa qui.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1108,
            "date": "2024-11-19",
            "title": "Consequuntur aut eos non iure repellat.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1074,
            "date": "2024-11-19",
            "title": "Deleniti sed odio dolore consequuntur ut minus soluta qui.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 10,
                "title": "无机化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 763,
            "date": "2024-11-19",
            "title": "Magni quis eaque autem alias voluptatem omnis sed.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 11,
                "title": "物理化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 604,
            "date": "2024-11-19",
            "title": "Eveniet quia magni esse dolorum ut amet.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 11,
                "title": "物理化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 578,
            "date": "2024-11-19",
            "title": "Consequatur magni est et perspiciatis rerum.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 299,
            "date": "2024-11-19",
            "title": "Optio enim delectus totam qui consequatur.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 16,
                "title": "Python程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 481,
            "date": "2024-11-19",
            "title": "Est commodi inventore explicabo voluptas.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1992,
            "date": "2024-11-20",
            "title": "Quas et assumenda sapiente nisi enim facere deserunt.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 14,
                "title": "C程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 222,
            "date": "2024-11-20",
            "title": "Cumque sit adipisci saepe nihil et pariatur sed.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 453,
            "date": "2024-11-20",
            "title": "Consequatur vitae blanditiis qui deleniti dolore consequatur voluptates.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 3,
                "title": "线性代数",
                "title_en": "Linear Algebra"
            },
            "sub_course_type": {
                "id": 4,
                "title": "线性代数"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 565,
            "date": "2024-11-20",
            "title": "Exercitationem rerum ratione nihil nostrum sed pariatur eaque non.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 7,
                "title": "工科物理",
                "title_en": "Engineering Physics"
            },
            "sub_course_type": {
                "id": 8,
                "title": "工科物理"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 696,
            "date": "2024-11-20",
            "title": "Corrupti aut non impedit soluta.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 5,
                "title": "概率论与数理统计",
                "title_en": "Probability and Statistics"
            },
            "sub_course_type": {
                "id": 6,
                "title": "概率论与数理统计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 708,
            "date": "2024-11-20",
            "title": "Est omnis voluptatem aut et itaque est.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 789,
            "date": "2024-11-20",
            "title": "Ipsa nostrum dolor ut deleniti.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 876,
            "date": "2024-11-20",
            "title": "Placeat consequatur qui vero esse magnam quaerat adipisci.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 5,
                "title": "概率论与数理统计",
                "title_en": "Probability and Statistics"
            },
            "sub_course_type": {
                "id": 6,
                "title": "概率论与数理统计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1094,
            "date": "2024-11-20",
            "title": "Explicabo et minima fugiat quibusdam sit cupiditate.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 20,
                "title": "大学英语",
                "title_en": "College English"
            },
            "sub_course_type": {
                "id": 21,
                "title": "大学英语"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1338,
            "date": "2024-11-20",
            "title": "Rerum quod quas nostrum.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 15,
                "title": "C++程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1423,
            "date": "2024-11-20",
            "title": "Aut consequatur eos est dolore et quam soluta.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 14,
                "title": "C程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1496,
            "date": "2024-11-20",
            "title": "Ex voluptas quia voluptas et.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 5,
                "title": "概率论与数理统计",
                "title_en": "Probability and Statistics"
            },
            "sub_course_type": {
                "id": 6,
                "title": "概率论与数理统计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1719,
            "date": "2024-11-20",
            "title": "Repellat ducimus nobis autem facilis est optio fuga.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 20,
                "title": "大学英语",
                "title_en": "College English"
            },
            "sub_course_type": {
                "id": 21,
                "title": "大学英语"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1746,
            "date": "2024-11-20",
            "title": "Quas sed rem et ut fuga impedit soluta aut.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1777,
            "date": "2024-11-20",
            "title": "Non nesciunt qui et aut iste.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 11,
                "title": "物理化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1874,
            "date": "2024-11-21",
            "title": "Aut dicta error culpa cupiditate odit sint qui.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 15,
                "title": "C++程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1167,
            "date": "2024-11-21",
            "title": "Dolore esse neque voluptates temporibus facilis nostrum.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 11,
                "title": "物理化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1205,
            "date": "2024-11-21",
            "title": "Quas numquam architecto totam voluptatem.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 15,
                "title": "C++程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1787,
            "date": "2024-11-21",
            "title": "Eum perferendis illum debitis.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 10,
                "title": "无机化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1836,
            "date": "2024-11-21",
            "title": "Nam voluptatum nihil est aut molestiae dolore eius.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1744,
            "date": "2024-11-21",
            "title": "Sapiente quidem sunt exercitationem ut qui inventore ut.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1683,
            "date": "2024-11-21",
            "title": "Necessitatibus minus iste animi qui doloremque atque.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 15,
                "title": "C++程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1672,
            "date": "2024-11-21",
            "title": "In iusto reiciendis dolores.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 15,
                "title": "C++程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 773,
            "date": "2024-11-21",
            "title": "Dolorem nesciunt eius ab nostrum est.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 825,
            "date": "2024-11-21",
            "title": "Cumque nam cumque sint incidunt mollitia.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 10,
                "title": "无机化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1647,
            "date": "2024-11-21",
            "title": "Ut cupiditate provident ex et sunt.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 15,
                "title": "C++程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1643,
            "date": "2024-11-21",
            "title": "Nobis at praesentium sed sint et quo corporis.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 7,
                "title": "工科物理",
                "title_en": "Engineering Physics"
            },
            "sub_course_type": {
                "id": 8,
                "title": "工科物理"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 302,
            "date": "2024-11-21",
            "title": "Enim sit quo voluptatem est.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 916,
            "date": "2024-11-21",
            "title": "Nesciunt aut quis sed dolorem corporis.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 7,
                "title": "工科物理",
                "title_en": "Engineering Physics"
            },
            "sub_course_type": {
                "id": 8,
                "title": "工科物理"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 945,
            "date": "2024-11-21",
            "title": "Vitae illum nesciunt quasi nihil odio voluptate.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 956,
            "date": "2024-11-21",
            "title": "Excepturi nihil nostrum inventore quisquam repellat a qui.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 11,
                "title": "物理化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1550,
            "date": "2024-11-21",
            "title": "Ullam saepe ut quia quis est quo cum.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 20,
                "title": "大学英语",
                "title_en": "College English"
            },
            "sub_course_type": {
                "id": 21,
                "title": "大学英语"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 608,
            "date": "2024-11-21",
            "title": "Minima voluptatem ut nihil enim animi vitae nisi.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 7,
                "title": "工科物理",
                "title_en": "Engineering Physics"
            },
            "sub_course_type": {
                "id": 8,
                "title": "工科物理"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1894,
            "date": "2024-11-21",
            "title": "Repudiandae minima et et architecto earum.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 20,
                "title": "大学英语",
                "title_en": "College English"
            },
            "sub_course_type": {
                "id": 21,
                "title": "大学英语"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1300,
            "date": "2024-11-21",
            "title": "Quaerat repellendus sed rem qui ut.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 20,
                "title": "大学英语",
                "title_en": "College English"
            },
            "sub_course_type": {
                "id": 21,
                "title": "大学英语"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 146,
            "date": "2024-11-21",
            "title": "Ipsam ea odio et optio eos est.",
            "teacher_memo": null,
            "started": true,
            "ended": true,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 164,
            "date": "2024-11-22",
            "title": "Impedit aliquid sint hic ut dolores.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 7,
                "title": "工科物理",
                "title_en": "Engineering Physics"
            },
            "sub_course_type": {
                "id": 8,
                "title": "工科物理"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1061,
            "date": "2024-11-22",
            "title": "Omnis sit praesentium sed repellendus vel mollitia quis.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 14,
                "title": "C程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1232,
            "date": "2024-11-22",
            "title": "Perspiciatis tempora et exercitationem.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 14,
                "title": "C程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1137,
            "date": "2024-11-22",
            "title": "Cumque maiores temporibus numquam est.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 5,
                "title": "概率论与数理统计",
                "title_en": "Probability and Statistics"
            },
            "sub_course_type": {
                "id": 6,
                "title": "概率论与数理统计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1486,
            "date": "2024-11-22",
            "title": "Mollitia quasi dolores rerum.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 10,
                "title": "无机化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1199,
            "date": "2024-11-22",
            "title": "Cumque et minus aut deleniti et et enim ipsa.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 16,
                "title": "Python程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 501,
            "date": "2024-11-22",
            "title": "Expedita odio voluptas dignissimos et explicabo facilis.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 15,
                "title": "C++程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 677,
            "date": "2024-11-22",
            "title": "Ea officiis aut aut accusantium.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 685,
            "date": "2024-11-22",
            "title": "Nihil laudantium est amet consequatur suscipit.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 10,
                "title": "无机化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1660,
            "date": "2024-11-22",
            "title": "Quo rerum recusandae non id similique saepe magni eum.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 7,
                "title": "工科物理",
                "title_en": "Engineering Physics"
            },
            "sub_course_type": {
                "id": 8,
                "title": "工科物理"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 247,
            "date": "2024-11-23",
            "title": "Quo repellendus laboriosam consequatur.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 16,
                "title": "Python程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 525,
            "date": "2024-11-23",
            "title": "Architecto id ea repellendus voluptatum.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 14,
                "title": "C程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 25,
            "date": "2024-11-23",
            "title": "Non et repellendus ipsum sequi nihil illo.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 3,
                "title": "线性代数",
                "title_en": "Linear Algebra"
            },
            "sub_course_type": {
                "id": 4,
                "title": "线性代数"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 474,
            "date": "2024-11-23",
            "title": "Repellat et error et.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 10,
                "title": "无机化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 405,
            "date": "2024-11-23",
            "title": "Omnis sit qui modi voluptas.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 14,
                "title": "C程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1910,
            "date": "2024-11-23",
            "title": "Qui vero minima debitis impedit voluptatem similique.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 16,
                "title": "Python程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1591,
            "date": "2024-11-23",
            "title": "Dolor soluta facilis voluptas ut sapiente quia aut.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 7,
                "title": "工科物理",
                "title_en": "Engineering Physics"
            },
            "sub_course_type": {
                "id": 8,
                "title": "工科物理"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 836,
            "date": "2024-11-23",
            "title": "Amet id qui tempore sint quisquam ut dolore.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 14,
                "title": "C程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 839,
            "date": "2024-11-23",
            "title": "Consequatur aut alias soluta harum.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 16,
                "title": "Python程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 949,
            "date": "2024-11-23",
            "title": "Quidem eveniet eum iste aut qui.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 7,
                "title": "工科物理",
                "title_en": "Engineering Physics"
            },
            "sub_course_type": {
                "id": 8,
                "title": "工科物理"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 257,
            "date": "2024-11-23",
            "title": "Impedit nam omnis reiciendis doloribus aut dolor sed.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 621,
            "date": "2024-11-23",
            "title": "Hic ipsum nesciunt magnam placeat aut numquam.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1661,
            "date": "2024-11-23",
            "title": "Exercitationem illo nihil doloremque incidunt.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 23,
            "date": "2024-11-23",
            "title": "Pariatur voluptatem architecto iure iusto.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 14,
                "title": "C程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 131,
            "date": "2024-11-23",
            "title": "Dolores tenetur et deleniti molestiae vero rerum.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 11,
                "title": "物理化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 533,
            "date": "2024-11-24",
            "title": "Aut nostrum velit error esse non.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 20,
                "title": "大学英语",
                "title_en": "College English"
            },
            "sub_course_type": {
                "id": 21,
                "title": "大学英语"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 613,
            "date": "2024-11-24",
            "title": "Quidem nam earum quis magni.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 14,
                "title": "C程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 885,
            "date": "2024-11-24",
            "title": "Magni dolor dolor tempora est.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 895,
            "date": "2024-11-24",
            "title": "Aspernatur neque eum laborum ipsa quod architecto.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 11,
                "title": "物理化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 170,
            "date": "2024-11-24",
            "title": "Perspiciatis ut mollitia nulla rem modi ducimus rerum.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 14,
                "title": "C程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 984,
            "date": "2024-11-24",
            "title": "Ratione itaque repudiandae et placeat.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 10,
                "title": "无机化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1096,
            "date": "2024-11-24",
            "title": "Laborum recusandae assumenda necessitatibus omnis.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 14,
                "title": "C程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 139,
            "date": "2024-11-24",
            "title": "Laudantium id placeat quia.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 16,
                "title": "Python程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1358,
            "date": "2024-11-24",
            "title": "Expedita totam ipsum ut eaque commodi.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 20,
                "title": "大学英语",
                "title_en": "College English"
            },
            "sub_course_type": {
                "id": 21,
                "title": "大学英语"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1442,
            "date": "2024-11-24",
            "title": "Voluptas alias officiis soluta.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 16,
                "title": "Python程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1446,
            "date": "2024-11-24",
            "title": "Ut dolores ipsum saepe ut sed suscipit.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 16,
                "title": "Python程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 83,
            "date": "2024-11-24",
            "title": "Sit placeat et et rerum aperiam aut.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 3,
                "title": "线性代数",
                "title_en": "Linear Algebra"
            },
            "sub_course_type": {
                "id": 4,
                "title": "线性代数"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1627,
            "date": "2024-11-24",
            "title": "Omnis dicta fugit voluptatum quo.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 7,
                "title": "工科物理",
                "title_en": "Engineering Physics"
            },
            "sub_course_type": {
                "id": 8,
                "title": "工科物理"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1741,
            "date": "2024-11-24",
            "title": "Voluptas dolores ut qui omnis eveniet commodi itaque.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 15,
                "title": "C++程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1311,
            "date": "2024-11-25",
            "title": "Soluta accusamus dolor esse quia voluptatem.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 414,
            "date": "2024-11-25",
            "title": "Unde illo quae deserunt dolorem et.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 3,
                "title": "线性代数",
                "title_en": "Linear Algebra"
            },
            "sub_course_type": {
                "id": 4,
                "title": "线性代数"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1827,
            "date": "2024-11-25",
            "title": "Ex commodi nobis ut voluptatum.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 20,
                "title": "大学英语",
                "title_en": "College English"
            },
            "sub_course_type": {
                "id": 21,
                "title": "大学英语"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1826,
            "date": "2024-11-25",
            "title": "Suscipit voluptatem repellat pariatur.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 15,
                "title": "C++程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 251,
            "date": "2024-11-25",
            "title": "Repudiandae temporibus et minima architecto alias ea.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 10,
                "title": "无机化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1581,
            "date": "2024-11-25",
            "title": "Nostrum omnis est vero ex harum.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 15,
                "title": "C++程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 520,
            "date": "2024-11-25",
            "title": "Ea sapiente eos voluptatem eos.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 10,
                "title": "无机化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 479,
            "date": "2024-11-25",
            "title": "Amet non qui quidem.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 15,
                "title": "C++程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 635,
            "date": "2024-11-25",
            "title": "Et est praesentium ab libero.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 16,
                "title": "Python程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1020,
            "date": "2024-11-25",
            "title": "Numquam ut aut similique.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 16,
                "title": "Python程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1942,
            "date": "2024-11-25",
            "title": "Quidem voluptas molestias repellendus sit repellat tenetur sapiente.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 10,
                "title": "无机化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 972,
            "date": "2024-11-26",
            "title": "Quidem neque quos numquam odit est porro.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 10,
                "title": "无机化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 351,
            "date": "2024-11-26",
            "title": "Quia consequatur facilis repellat.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 16,
                "title": "Python程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 136,
            "date": "2024-11-26",
            "title": "Officia explicabo perferendis magnam magni eos adipisci quis.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1011,
            "date": "2024-11-26",
            "title": "Repellendus eaque deleniti accusantium eveniet eos non.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 20,
                "title": "大学英语",
                "title_en": "College English"
            },
            "sub_course_type": {
                "id": 21,
                "title": "大学英语"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 623,
            "date": "2024-11-26",
            "title": "Rerum quis voluptates aut nobis dolores.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 20,
                "title": "大学英语",
                "title_en": "College English"
            },
            "sub_course_type": {
                "id": 21,
                "title": "大学英语"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 133,
            "date": "2024-11-26",
            "title": "Optio corrupti quidem tempore id eum natus eos.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 981,
            "date": "2024-11-26",
            "title": "Minima magni consequatur dolores consequatur.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 751,
            "date": "2024-11-26",
            "title": "Quod non earum architecto at doloremque deserunt.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1974,
            "date": "2024-11-26",
            "title": "Enim praesentium ea voluptatem qui.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 3,
            "date": "2024-11-26",
            "title": "Et earum eligendi nostrum minima voluptates.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 15,
                "title": "C++程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 427,
            "date": "2024-11-26",
            "title": "Totam natus labore earum deserunt voluptates nesciunt.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1793,
            "date": "2024-11-26",
            "title": "Laudantium eum occaecati velit animi quaerat deleniti.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 15,
                "title": "C++程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1323,
            "date": "2024-11-26",
            "title": "Accusantium quasi dolor temporibus culpa.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 20,
                "title": "大学英语",
                "title_en": "College English"
            },
            "sub_course_type": {
                "id": 21,
                "title": "大学英语"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1860,
            "date": "2024-11-27",
            "title": "Quo quisquam accusantium ipsam minima ducimus sint quibusdam.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 762,
            "date": "2024-11-27",
            "title": "Laboriosam eos aut possimus eos deleniti nesciunt at.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1229,
            "date": "2024-11-27",
            "title": "Nisi explicabo qui sapiente esse culpa quod neque.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1959,
            "date": "2024-11-27",
            "title": "Minus non sed non laborum.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 3,
                "title": "线性代数",
                "title_en": "Linear Algebra"
            },
            "sub_course_type": {
                "id": 4,
                "title": "线性代数"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1735,
            "date": "2024-11-27",
            "title": "Tempore alias veritatis eius molestiae et recusandae soluta.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 16,
                "title": "Python程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1116,
            "date": "2024-11-27",
            "title": "Quis et beatae natus et beatae suscipit.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 3,
                "title": "线性代数",
                "title_en": "Linear Algebra"
            },
            "sub_course_type": {
                "id": 4,
                "title": "线性代数"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1553,
            "date": "2024-11-27",
            "title": "Autem reiciendis consectetur dolore.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 15,
                "title": "C++程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1259,
            "date": "2024-11-27",
            "title": "Laboriosam autem velit similique odit.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 14,
                "title": "C程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 423,
            "date": "2024-11-27",
            "title": "Qui eaque aliquam perferendis eum dolor ducimus accusamus.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 13,
                "title": "数据与计算思维基础"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1357,
            "date": "2024-11-27",
            "title": "Nihil qui eum voluptatem adipisci animi quo.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 10,
                "title": "无机化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 326,
            "date": "2024-11-27",
            "title": "Eum eos sed eos quam tenetur porro officiis rem.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 7,
                "title": "工科物理",
                "title_en": "Engineering Physics"
            },
            "sub_course_type": {
                "id": 8,
                "title": "工科物理"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 933,
            "date": "2024-11-27",
            "title": "Illo maxime quia impedit.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 20,
                "title": "大学英语",
                "title_en": "College English"
            },
            "sub_course_type": {
                "id": 21,
                "title": "大学英语"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 44,
            "date": "2024-11-28",
            "title": "Sunt rerum vitae fugit sed voluptate et voluptatem.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 5,
                "start": "17:10",
                "end": "18:45"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1073,
            "date": "2024-11-28",
            "title": "Culpa dolor magni qui est incidunt.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 18,
                "title": "机械制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 636,
            "date": "2024-11-28",
            "title": "Numquam nihil nam aliquam in sint enim.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1867,
            "date": "2024-11-28",
            "title": "Sint eius deleniti accusantium itaque.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 5,
                "title": "概率论与数理统计",
                "title_en": "Probability and Statistics"
            },
            "sub_course_type": {
                "id": 6,
                "title": "概率论与数理统计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 995,
            "date": "2024-11-28",
            "title": "Dolor odit dolores est aperiam voluptatem est officiis.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 2,
                "start": "9:55",
                "end": "11:30"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 11,
                "title": "物理化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 1563,
            "date": "2024-11-28",
            "title": "Ut ea ullam saepe molestiae expedita assumenda est.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 6,
                "start": "19:30",
                "end": "21:05"
            },
            "course_type": {
                "id": 17,
                "title": "制图类",
                "title_en": "Technical Drawing"
            },
            "sub_course_type": {
                "id": 19,
                "title": "工程制图"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 214,
            "date": "2024-11-28",
            "title": "Nulla aperiam suscipit reprehenderit eos sit est at.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 15,
                "title": "C++程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 840,
            "date": "2024-11-28",
            "title": "Qui minima recusandae assumenda adipisci.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 9,
                "title": "化学类",
                "title_en": "Chemistry"
            },
            "sub_course_type": {
                "id": 10,
                "title": "无机化学"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 195,
            "date": "2024-11-28",
            "title": "Sed occaecati voluptate minima qui.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 5,
                "title": "概率论与数理统计",
                "title_en": "Probability and Statistics"
            },
            "sub_course_type": {
                "id": 6,
                "title": "概率论与数理统计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 919,
            "date": "2024-11-28",
            "title": "Cumque ipsum delectus aut impedit est.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 4,
                "start": "15:20",
                "end": "16:55"
            },
            "course_type": {
                "id": 20,
                "title": "大学英语",
                "title_en": "College English"
            },
            "sub_course_type": {
                "id": 21,
                "title": "大学英语"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 651,
            "date": "2024-11-28",
            "title": "Tempore consectetur accusamus in est autem est facere.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 1,
                "start": "8:00",
                "end": "9:35"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 14,
                "title": "C程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        },
        {
            "id": 137,
            "date": "2024-11-28",
            "title": "Nesciunt voluptatem ut et.",
            "teacher_memo": null,
            "started": false,
            "ended": false,
            "is_occupied": false,
            "period": {
                "position": 3,
                "start": "13:30",
                "end": "15:05"
            },
            "course_type": {
                "id": 12,
                "title": "计算机类",
                "title_en": "Computer Science"
            },
            "sub_course_type": {
                "id": 16,
                "title": "Python程序设计"
            },
            "rooms": [],
            "teacher": {
                "id": 2,
                "name": "覃淑兰",
                "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png"
            }
        }
    ]
}

HTTP Request

GET api/schedule/query/teacherScheduleIndex

Body Parameters

Parameter Type Status Description
without_occupied boolean optional 是否排除已约的日程,默认不排除 (false)

student 学生

list student 学生列表


Requires authentication

超管学生

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/student" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"curPage":1,"perPage":1,"startDate":"2024-11-21","endDate":"2024-11-21","name":"vitae","student_number":"iste","institute":"beatae"}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/student"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "curPage": 1,
    "perPage": 1,
    "startDate": "2024-11-21",
    "endDate": "2024-11-21",
    "name": "vitae",
    "student_number": "iste",
    "institute": "beatae"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 422,
    "errorMessage": "The given data was invalid.",
    "data": {
        "perPage": [
            "per page 必须大于等于 2。"
        ]
    }
}

HTTP Request

GET api/student

Body Parameters

Parameter Type Status Description
curPage integer optional default 1
perPage integer optional default 10
startDate date optional date_format:Y-m-d default 本周周一
endDate date optional date_format:Y-m-ddefault 下下周周一 (+14)
name string optional 学生姓名,模糊查找
student_number string optional 学号,精确查找
institute string optional 学院名称,精确查找

store student 新建或更新学生信息


Requires authentication

超管学生

Example request:

curl -X POST \
    "https://ustb-xueye.cerallin.top/api/student" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"student_id":"est"}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/student"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "student_id": "est"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 422,
    "errorMessage": "The given data was invalid.",
    "data": {
        "name": [
            "名称 不能为空。"
        ],
        "student_number": [
            "学号 不能为空。"
        ],
        "student_id": [
            "student id 必须是整数。"
        ]
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": " 模型不存在"
}

Example response (200):

{
    "success": false,
    "errorCode": "1001",
    "errorMessage": "模型保存失败"
}

HTTP Request

POST api/student

Body Parameters

Parameter Type Status Description
student_id string optional 学生ID,管理员才能指定,默认当前用户

show student 显示学生信息


Requires authentication

超管学生

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/student/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/student/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": {
        "id": 1,
        "name": "强玉英",
        "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png",
        "student_number": "41956526",
        "major": null,
        "institute": null
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

HTTP Request

GET api/student/{id}

update student 更新学生信息


Requires authentication

超管学生

Example request:

curl -X PUT \
    "https://ustb-xueye.cerallin.top/api/student/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/student/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 422,
    "errorMessage": "The given data was invalid.",
    "data": {
        "name": [
            "名称 不能为空。"
        ],
        "student_number": [
            "学号 不能为空。"
        ]
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "3000",
    "errorMessage": "请使用store接口。"
}

HTTP Request

PUT api/student/{id}

PATCH api/student/{id}

delete student 删除学生信息


Requires authentication

超管学生

Example request:

curl -X DELETE \
    "https://ustb-xueye.cerallin.top/api/student/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/student/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 3000,
    "errorMessage": "该接口暂不开放。 "
}

Example response (200):

{
    "success": false,
    "errorCode": "3000",
    "errorMessage": ""
}

HTTP Request

DELETE api/student/{id}

teacher 讲师与讲师信息

list teacher 讲师列表


Requires authentication

超管学生讲师

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/teacher" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"curPage":13,"perPage":15}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/teacher"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "curPage": 13,
    "perPage": 15
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": [],
    "meta": {
        "curPage": 13,
        "perPage": 15,
        "total": 19
    }
}

HTTP Request

GET api/teacher

Body Parameters

Parameter Type Status Description
curPage integer optional default 1
perPage integer optional default 10

create teacher info 新建或更新讲师信息


Requires authentication

超管讲师

Example request:

curl -X POST \
    "https://ustb-xueye.cerallin.top/api/teacher" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest" \
    -d '{"interests":"inventore","description":"aut","resume":"dolor","courses":[9],"teacher_id":2}'
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/teacher"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

let body = {
    "interests": "inventore",
    "description": "aut",
    "resume": "dolor",
    "courses": [
        9
    ],
    "teacher_id": 2
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": {
        "msg": "更新成功"
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": " 模型不存在(教师不存在)"
}

Example response (200):

{
    "success": false,
    "errorCode": "1001",
    "errorMessage": "模型保存失败"
}

HTTP Request

POST api/teacher

Body Parameters

Parameter Type Status Description
interests string optional 擅长领域
description string optional G语
resume string optional 经历
courses.* integer optional 能讲的课
teacher_id integer optional 讲师ID,只有管理员有资格传参

show teacher info 显示讲师信息


Requires authentication

超管学生讲师

Example request:

curl -X GET \
    -G "https://ustb-xueye.cerallin.top/api/teacher/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/teacher/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": {
        "id": 1,
        "name": "强玉英",
        "avatar_url": "https:\/\/ustb-xueye.cerallin.top\/assets\/default-avatar.png",
        "interests": "Facilis autem eligendi ut.",
        "description": "Nesciunt voluptatem ut minima labore impedit. A officia sint nihil voluptas. Maxime molestias impedit quod recusandae placeat et.",
        "resume": "Aut ea eum sint distinctio accusamus maiores. Dolorem voluptates voluptatem et tenetur. Velit laboriosam dicta quidem similique. Quasi placeat aut ad delectus repellat qui ut tempore. Et minima fugiat fuga odit. Beatae voluptatum accusamus sed rem dolore dolor."
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

HTTP Request

GET api/teacher/{id}

update teacher info 更新讲师信息


Requires authentication

超管讲师

Example request:

curl -X PUT \
    "https://ustb-xueye.cerallin.top/api/teacher/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/teacher/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": false,
    "errorCode": 422,
    "errorMessage": "The given data was invalid.",
    "data": {
        "courses": [
            "courses 不能为空。"
        ]
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "3000",
    "errorMessage": "请使用store接口。"
}

HTTP Request

PUT api/teacher/{id}

PATCH api/teacher/{id}

delete teacher info 删除讲师信息


Requires authentication

超管讲师

Example request:

curl -X DELETE \
    "https://ustb-xueye.cerallin.top/api/teacher/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long" \
    -H "X-Requested-With: XMLHttpRequest"
const url = new URL(
    "https://ustb-xueye.cerallin.top/api/teacher/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer an_example_api_token_only_for_authentication_testing_which_is_80_characters_long",
    "X-Requested-With": "XMLHttpRequest",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": true,
    "data": {
        "msg": "删除成功"
    }
}

Example response (200):

{
    "success": false,
    "errorCode": "404",
    "errorMessage": "模型不存在"
}

Example response (200):

{
    "success": false,
    "errorCode": "1002",
    "errorMessage": "模型删除失败"
}

HTTP Request

DELETE api/teacher/{id}