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、最近点赞时间、收藏(favoriteInfo)与点赞(voteInfo)统计。

所有响应都包裹在标准信封中:{ "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": "用户列表(恒空)"
        }
      }
    },
    "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": "用户列表(恒空)"
        }
      }
    }
  },
  "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 接入