文档
测试

7.2查询学过某老师授课的同学的信息

GET
http://localhost:8080/sc/seven.do

请求参数

参数名
类型
描述
必填
tname
String
老师姓名
必填

响应参数

参数名
类型
描述
必填
status
Integer
状态码
必填
msg
String
状态信息
必填

成功示例

{ "status": 200, "data": [ { "sid": "01", "sname": "赵雷", "ssex": "男", "sbirth": "1990-01-01" }, { "sid": "02", "sname": "钱电", "ssex": "男", "sbirth": "1990-12-21" }, { "sid": "03", "sname": "孙凤", "ssex": "男", "sbirth": "1990-05-20" }, { "sid": "04", "sname": "李云", "ssex": "男", "sbirth": "1990-08-06" }, { "sid": "05", "sname": "周梅", "ssex": "女", "sbirth": "1991-12-12" }, { "sid": "07", "sname": "郑竹", "ssex": "女", "sbirth": "1989-07-01" } ] }

失败示例

{ "status": 100, "msg": "参数不合法" } { "status": 100, "msg": "不存在该老师" } { "status": 100, "msg": "不存在该课程" }