get_profile_like

get_profile_like只读扩展
获取资料点赞

通过 POST http://127.0.0.1:3000/get_profile_like(请求体为 JSON 参数)或 WebSocket 调用。

输入参数

参数 类型 必填 默认 说明
user_id int 0
start int 0
count int 10

返回 (data)

点赞资料:uid、最近点赞时间、收藏与点赞统计及用户明细。

所有响应都包裹在标准信封中:{ "status": "ok", "retcode": 0, "data": ... }。下表描述 data 字段。

字段 类型 必填 说明
uid string 用户 uid
time integer 最近点赞时间戳
favoriteInfo object 收藏统计
voteInfo object 点赞统计
原始 JSON Schema
{
  "type": "object",
  "properties": {
    "uid": {
      "type": "string",
      "description": "用户 uid"
    },
    "time": {
      "type": "integer",
      "description": "最近点赞时间戳"
    },
    "favoriteInfo": {
      "type": "object",
      "description": "收藏统计",
      "properties": {
        "total_count": {
          "type": "integer",
          "description": "收藏总数"
        },
        "last_time": {
          "type": "integer",
          "description": "最近收藏时间戳"
        },
        "today_count": {
          "type": "integer",
          "description": "今日收藏数"
        },
        "userInfos": {
          "type": "array",
          "description": "收藏用户列表",
          "items": {
            "type": "object",
            "properties": {
              "uid": {
                "type": "string",
                "description": "用户 uid"
              },
              "uin": {
                "type": "integer",
                "description": "用户 QQ 号;资料中没有有效号码时为 0"
              },
              "src": {
                "type": "integer",
                "description": "来源类型"
              },
              "latestTime": {
                "type": "integer",
                "description": "最近互动时间戳"
              },
              "count": {
                "type": "integer",
                "description": "互动次数"
              },
              "giftCount": {
                "type": "integer",
                "description": "礼物数量"
              },
              "customId": {
                "type": "integer",
                "description": "自定义标识"
              },
              "lastCharged": {
                "type": "integer",
                "description": "最近充能时间"
              },
              "bAvailableCnt": {
                "type": "integer",
                "description": "可用次数"
              },
              "bTodayVotedCnt": {
                "type": "integer",
                "description": "今日已点赞次数"
              },
              "nick": {
                "type": "string",
                "description": "昵称"
              },
              "gender": {
                "type": "integer",
                "description": "性别"
              },
              "age": {
                "type": "integer",
                "description": "年龄"
              },
              "isFriend": {
                "type": "boolean",
                "description": "是否为好友"
              },
              "isvip": {
                "type": "boolean",
                "description": "是否为会员"
              },
              "isSvip": {
                "type": "boolean",
                "description": "是否为超级会员"
              }
            },
            "required": [
              "uid",
              "uin",
              "src",
              "latestTime",
              "count",
              "giftCount",
              "customId",
              "lastCharged",
              "bAvailableCnt",
              "bTodayVotedCnt",
              "nick",
              "gender",
              "age",
              "isFriend",
              "isvip",
              "isSvip"
            ]
          }
        }
      }
    },
    "voteInfo": {
      "type": "object",
      "description": "点赞统计",
      "properties": {
        "total_count": {
          "type": "integer",
          "description": "点赞总数"
        },
        "new_count": {
          "type": "integer",
          "description": "新增点赞数"
        },
        "new_nearby_count": {
          "type": "integer",
          "description": "附近的人新增点赞数"
        },
        "last_visit_time": {
          "type": "integer",
          "description": "最近访问时间戳"
        },
        "userInfos": {
          "type": "array",
          "description": "点赞用户列表",
          "items": {
            "type": "object",
            "properties": {
              "uid": {
                "type": "string",
                "description": "用户 uid"
              },
              "uin": {
                "type": "integer",
                "description": "用户 QQ 号;资料中没有有效号码时为 0"
              },
              "src": {
                "type": "integer",
                "description": "来源类型"
              },
              "latestTime": {
                "type": "integer",
                "description": "最近互动时间戳"
              },
              "count": {
                "type": "integer",
                "description": "互动次数"
              },
              "giftCount": {
                "type": "integer",
                "description": "礼物数量"
              },
              "customId": {
                "type": "integer",
                "description": "自定义标识"
              },
              "lastCharged": {
                "type": "integer",
                "description": "最近充能时间"
              },
              "bAvailableCnt": {
                "type": "integer",
                "description": "可用次数"
              },
              "bTodayVotedCnt": {
                "type": "integer",
                "description": "今日已点赞次数"
              },
              "nick": {
                "type": "string",
                "description": "昵称"
              },
              "gender": {
                "type": "integer",
                "description": "性别"
              },
              "age": {
                "type": "integer",
                "description": "年龄"
              },
              "isFriend": {
                "type": "boolean",
                "description": "是否为好友"
              },
              "isvip": {
                "type": "boolean",
                "description": "是否为会员"
              },
              "isSvip": {
                "type": "boolean",
                "description": "是否为超级会员"
              }
            },
            "required": [
              "uid",
              "uin",
              "src",
              "latestTime",
              "count",
              "giftCount",
              "customId",
              "lastCharged",
              "bAvailableCnt",
              "bTodayVotedCnt",
              "nick",
              "gender",
              "age",
              "isFriend",
              "isvip",
              "isSvip"
            ]
          }
        }
      }
    }
  },
  "required": [
    "uid",
    "time",
    "favoriteInfo",
    "voteInfo"
  ]
}

调用示例

curl
Python
JavaScript
Go
SnowLuma SDK
curl -X POST http://127.0.0.1:3000/get_profile_like \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <access-token>' \
  -d '{"user_id":0,"start":0,"count":10}'
在用 AI 助手?

支持 MCP 的客户端可直接发现并调用本动作,无需手写 HTTP。见 MCP 接入