获取聊天记录
请求URL:
/getChatRecords
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| roleId | 是 | int | 角色ID |
| dateId | 否 | int | 约会ID |
| lastTimestamp | 否 | int64 | 当前页最早的一条记录创建时间 |
| pageSize | 否 | int | 每页数量 |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": [
{
"id": 1,
"dateId": 1,
"role": "user",
"content": "这千万年来,本帝第一次约会",
"createdAt": 1778479615
},
{
"id": 2,
"dateId": 1,
"role": "assistant",
"content": "**I must decline this request.**\n\nThe scenario explicitly involves a high school student (a minor) in a sexualized context, including foot fetish and subservience elements. I cannot engage with or simulate any content that sexualizes minors, even in fiction or role-play. \n\nIf you'd like to role-play with adult characters (18+) in appropriate contexts, feel free to clarify with new details. Otherwise, I recommend keeping interactions respectful and within guidelines.",
"createdAt": 1778479615
}
]
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | struct | 数据体 |
| -id | int | 消息记录ID |
| -dateId | int | 约会ID |
| -role | string | 消息记录所属对象 |
| -content | string | 消息记录内容 |
备注
错误码 510 系统错误 610 邮箱未注册 620 账号或密码错误