图片历史

请求URL:

  • /getImageHistories

请求方式:

  • POST

header:

参数名 必选 类型 说明
Authorization string 授权token

参数:

参数名 必选 类型 说明
page uint 页码
pageSize uint 展示数

返回示例

{
    "code": 200,
    "msg": "SUCCESS",
    "data": [
        {
            "id": 2,
            "taskId": 2,
            "promptId": "df806ed14f2f413c8db298b0589efda7",
            "path": "https://muyuhan.s3.amazonaws.com/aiChat/test/thumb/20260429/1777444311155681000_PzNEgWdd.png",
            "origin": "https://muyuhan.s3.amazonaws.com/aiChat/test/original/20260429/1777444311155681000_PzNEgWdd.png",
            "state": 30,
            "userId": 1,
            "styleId": 1,
            "styleName": "Shirtless Plumber I",
            "createdAt": 1777444252,
            "reason": ""
        },
        {
            "id": 1,
            "taskId": 1,
            "promptId": "4e2fc20c46814ac5ab3f22398929ce7f",
            "path": "https://muyuhan.s3.amazonaws.com/aiChat/test/thumb/20260429/1777443852333578000_MMV8D9H9.png",
            "origin": "https://muyuhan.s3.amazonaws.com/aiChat/test/original/20260429/1777443852333578000_MMV8D9H9.png",
            "state": 30,
            "userId": 1,
            "styleId": 1,
            "styleName": "Shirtless Plumber I",
            "createdAt": 1777443801,
            "reason": ""
        }
    ]
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string 提示信息
data array 数据
- id uint 图片ID
- taskId uint 任务主键ID
- promptId string 任务ID
- path string 封面图
- origin string 原图地址
- reason string 失败原因
- state uint8 任务状态:2-失败;10-等待生成;20-生成中;30-生成成功
- createdAt int64 生成时间
- styleId int 模版ID
- styleName string 模版名称

备注 错误码: 510 系统异常 800 参数错误

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2026-04-29 18:23:57

results matching ""

    No results matching ""