获取聊天记录

请求URL:

  • /getChatRecords

请求方式:

  • POST

参数:

参数名 必选 类型 说明
roleId roleId 角色ID
page int 页码
pageSize int 每页数量

返回示例

{
    "code": 200,
    "msg": "success",
    "data": [
        {
            "id": 75,
            "role": "assistant",
            "sceneId": 0,
            "charName": "",
            "content": "朕乃千古一帝",
            "image": "xxx",
            "imageState": 0,
            "createdAt": 1752650226
        }
    ]
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string 提示信息
data struct 数据体
-id int 消息记录ID
-role string 消息记录所属对象
-sceneId uint 场景ID
-charName string 人物名
-content string 消息记录内容
-image string 图片地址
-imageState uint8 生图状态(2-生图失败;10-等待生图;20-正在生图;30-生图成功)
-createdAt int64 消息记录产生时间

备注

错误码 510 系统错误 610 邮箱未注册 620 账号或密码错误

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2025-12-26 18:58:27

results matching ""

    No results matching ""