(取消)点赞

请求URL:

  • /getFavorite

请求方式:

  • GET

参数:

参数名 必选 类型 说明
page int 当前页
page_size int 每页数量

返回示例

{
    "code": 200,
    "msg": "SUCCESS",
    "data": [
        {
            "favoriteId": 16,
            "image": {
                "id": 4,
                "taskId": 8,
                "path": "https://muyuhan.s3.us-east-1.amazonaws.com/webUI/test/original/thumbnail-image-20250415113400-120253.jpeg",
                "origin": "https://muyuhan.s3.us-east-1.amazonaws.com/webUI/test/original/image-20250415113400-120253.jpeg",
                "state": 0,
                "width": 558,
                "height": 992,
                "isPublish": 0,
                "userId": 1,
                "styleId": 1,
                "aspectRatio": 2,
                "content": "a young girl wearing a bikini, lying in the bedroom",
                "seed": 213534645646,
                "taskType": 1,
                "styleName": "3D卡通",
                "aspectRatioTxt": "9:16",
                "favorite": true,
                "createdAt": 1744659243,
                "favoriteId": 16
            }
        }
    ]
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string 提示信息
data array 数据列表
-favoriteId int 点赞ID
-image struct 图片信息
--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 生成时间
--favoriteId int 点赞记录ID

备注

已点赞的数据再次请求则是取消点赞

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2025-04-23 14:15:57

results matching ""

    No results matching ""