本视频由 保利威 提供技术支持

6. 获取所有教师

教师列表接口:

GET http://localhost:8089/teacher

接口响应示例:
状态码:200
响应主体

[
  {
    "id": 1,
    "name": "张三",
    "username": "zhangsan",
    "email": "zhangsan@yunzhiclub.com",
    "sex": true
  },
  {
    "id": 2,
    "name": "李四",
    "username": "lisi",
    "email": "lisi@yunzhiclub.com",
    "sex": false
  }
]