生图模版列表
请求URL:
/imageList
请求方式:
- POST
header:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| Authorization | 是 | string | 授权token |
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| appId | 是 | string | 无 |
| udid | 是 | string | 无 |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": [
{
"id": 1,
"title": "生图模版",
"covering": "https://muyuhan.s3.amazonaws.com/images/styles/anime.jpg",
"image": "https://muyuhan.s3.amazonaws.com/images/styles/anime_new.jpg",
"workflowId": 0,
"prompt": "生图模版提示词",
"favoriteCount": 0,
"isAudit": 0,
"pid": 3,
"sort": 0,
"author": "",
"createdAt": 1757492877,
"updatedAt": 1757496943,
"isFavorite": false
},
{
"id": 2,
"title": "生图模版",
"covering": "https://muyuhan.s3.amazonaws.com/images/styles/anime.jpg",
"image": "https://muyuhan.s3.amazonaws.com/images/styles/anime_new.jpg",
"workflowId": 0,
"prompt": "生图模版提示词",
"favoriteCount": 0,
"isAudit": 0,
"pid": 4,
"sort": 0,
"author": "",
"createdAt": 1757492877,
"updatedAt": 1757496943,
"isFavorite": false
}
]
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | Struct | 数据 |
| - id | int | ID |
| - title | string | 标题 |
| - covering | string | 封面图 |
| - image | string | 背景图 |
| - workflowId | int | 工作流ID |
| - favoriteCount | int | 点赞数 |
| - prompt | string | 提示词 |
| - author | string | 创作者 |
| - isFavorite | bool | 是否已点赞 |
备注 错误码: 510 系统异常 800 参数错误