描述

查看指定课程下的白名单成员;

接口地址

http://api-class.e.vhall.com/api/class/whitelist/class-users

请求参数

公共参数需要每次请求都附带上,详细内容请参考公共参数

参数名 类型 必选 说明
child_id int 子账户id
class_id string 课程id
curr_page int 当前页数,默认第一页
pagesize int 每页显示条数,默认50条,至多50条

响应参数

参数名 必选 说明
total int 学员总数
total_page int 总页数
curr_page int 当前页数
list array 学员信息列表
id int 学员id
user_name string 学员名称
title string 头衔
email string 邮箱
wechat string 微信
gender string 性别 M 代表男 W 代表女 空字符串为未知
mobile string 学员手机号
remarks string 学员备注
student_mark string 学号
created_at string 创建时间

响应示例

{
  "code": 200,
  "msg": "success",
  "data": {
    "total": 2,
    "curr_page": 1,
    "total_page": 1,
    "list": [
      {
        "id": 106,
        "student_mark": "",
        "user_name": "18911894822",
        "title": "",
        "mobile": "18911894888",
        "email": "",
        "wechat": "",
        "gender": 0,
        "remarks": "",
        "created_at": "2019-06-24 21:29:28"
      },
      {
        "id": 502,
        "student_mark": "1",
        "user_name": "asdfsd",
        "title": "",
        "mobile": "18911894821",
        "email": "test@qq.com",
        "wechat": "wechat",
        "gender": 1,
        "remarks": "",
        "created_at": "2020-05-11 17:50:10"
      }
    ]
  }
}

错误码

code 含义
20000 子账号不存在
400 课程不存在
400 每页最多50条