文档
测试

查询学过某位老师课程的信息

GET
http://localhost:8080/sc/stmsg

接口描述

输入某个老师的名字,输出学过该老师课程的学生信息

请求参数

参数名
类型
描述
必填
tname
string
老师名字
必填

响应参数

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

成功的示例

{ "status": 200, "msg": null, "data": [ { "sid": "1", "ssex": "男", "sname": "赵雷", "sbirth": "1990-01-01" }, { "sid": "2", "ssex": "男", "sname": "钱电", "sbirth": "1990-12-21" }, { "sid": "3", "ssex": "男", "sname": "孙凤", "sbirth": "1990-05-20" }, ] }

失败的示例

ResponseCode{status=100, msg='该用户不存在', data=null}