聊天生图详情
请求URL:
/getMediaTaskInfo
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| recordId | 否 | int | 对话记录ID |
| taskId | 否 | int | 任务ID |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"recordId": 29621,
"dialogueId": 4971,
"roleId": 10003,
"type": 1,
"state": 10,
"path": "",
"reason": "",
"updatedAt": 1763104933
}
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | struct | 生图数据 |
| - id | uint | 生图任务ID |
| - recordId | uint | 对话记录ID |
| - dialogueId | uint | 会话记录ID |
| - roleId | uint | 角色ID |
| - type | uint | 任务类型:1-生图;2-生视频 |
| - path | string | 文件地址 |
| - reason | string | 失败原因 |
| - state | uint | 任务状态:2-生图失败;10-等待生图;20-正在生图;30-生图成功 |
备注
recordId 和 taskId 不能同时为空