描述

获取课程历史的聊天记录,按照时间倒序排列;

接口地址

http://api-class.e.vhall.com/api/class/chat/class-chat-record

请求参数

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

参数名 类型 必选 说明
child_id int 子账户id
class_id string 课程id
start_date string 开始时间 eg: 2020-08-01 08:00:10
end_date string 结束时间 eg: 2020-08-02 08:00:10
curr_page int 页数 默认为1
pagesize int 每页展示条数 默认为200,至多200

响应参数

参数名 类型 说明
id int 聊天记录id
content string 聊天记录内容
class_id string 课程id
role_type int 用户角色类型 1:讲师;2:学员;3:助理;4:嘉宾;5:督课;
user_name string 用户昵称
created_at string 创建时间

响应示例

{ "code": 200, "msg": "success", "data": { "num": 1 } }

错误码

code 含义
10005 课程不存在
20000 子账号不存在
400 最多展示200条聊天记录