社区图片
请求URL:
/getCommunityImage
请求方式:
- GET
参数:
请求头
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| Authorization | 否 | string | 登录成功后的通讯令牌 |
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| page | 是 | int | 当前页 |
| page_size | 是 | int | 每页数量 |
| style_id | 否 | int | 风格ID(推荐列表不传或传空字符串) |
| order_type | 否 | int | 排序方式:1-hot;2-all |
| appVersion | 否 | string | 当前app版本号 |
返回示例
{
"code": 0,
"msg": "success",
"data": [
{
"id": 7,
"taskId": 76,
"path": "https://muyuhan.s3.us-east-1.amazonaws.com/comfyUI/original/thumbnail-image-20250416083245-542735.jpeg",
"origin": "https://muyuhan.s3.us-east-1.amazonaws.com/comfyUI/original/image-20250416083245-542735.jpeg",
"state": 30,
"width": 992,
"height": 558,
"isPublish": 1,
"userId": 7,
"styleId": 1,
"aspectRatio": 1,
"content": "cat",
"seed": 63161930620,
"taskType": 1,
"styleName": "3D卡通",
"aspectRatioTxt": "16:9",
"favorite": false,
"createdAt": 1744763566
},
{
"id": 3,
"taskId": 7,
"path": "https://muyuhan.s3.us-east-1.amazonaws.com/webUI/test/original/thumbnail-image-20250415113251-431818.jpeg",
"origin": "https://muyuhan.s3.us-east-1.amazonaws.com/webUI/test/original/image-20250415113251-431818.jpeg",
"state": 30,
"width": 992,
"height": 992,
"isPublish": 1,
"userId": 1,
"styleId": 1,
"aspectRatio": 3,
"content": "a young girl wearing a bikini, lying in the bedroom",
"seed": 213534645646,
"taskType": 1,
"styleName": "3D卡通",
"aspectRatioTxt": "1:1",
"favorite": false,
"createdAt": 1744659173
},
{
"id": 1,
"taskId": 6,
"path": "https://muyuhan.s3.us-east-1.amazonaws.com/webUI/test/original/thumbnail-image-20250415113142-285204.jpeg",
"origin": "https://muyuhan.s3.us-east-1.amazonaws.com/webUI/test/original/image-20250415113142-285204.jpeg",
"state": 30,
"width": 992,
"height": 992,
"isPublish": 1,
"userId": 1,
"styleId": 1,
"aspectRatio": 3,
"content": "a young girl wearing a bikini, lying in the bedroom",
"seed": 213534645646,
"taskType": 1,
"styleName": "3D卡通",
"aspectRatioTxt": "1:1",
"favorite": true,
"createdAt": 1744659105
}
]
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | array | 数据列表 |
| --id | int | 图片ID |
| --taskId | int | 任务ID |
| --path | string | 缩略图地址 |
| --origin | string | 原图地址 |
| --state | int | 状态 |
| --width | int | 宽度 |
| --height | int | 高度 |
| --isPublish | int | 是否已发布:1-是;0-否 |
| --userId | int | 用户ID |
| --styleId | int | 风格ID |
| --aspectRatio | int | 宽高比ID |
| --content | string | 提示词 |
| --styleName | string | 风格 |
| --aspectRatioTxt | string | 宽高比 |
| --seed | int | 种子 |
| --favorite | bool | 是否已点赞 |
| --createdAt | int | 生成时间 |
备注 state:5-社区不能展示 6-社区和个人中心都不能展示 30-所有地方都可以展示