文档
测试

学生通过课程id查询课程信息

GET
http://47.110.154.146:8092/student/getCourse

接口描述

http://localhost:8092/student/getCourse?id=190101

请求参数

参数名
类型
描述
必填
id
String
6位课程id
必填

说明 / 示例

成功返回 { status: "success", data: { courseId: "190101", name: "课程1", teacherId: "1901", credit: 4, intro: "1", department: "计电院", schedule: "5012" } } 失败返回 { status: "fail", data: { errCode: 40001, errMsg: "课程不存在" } }