Skip to content
关注公众号,获取新课通知
【重要通知】uniapp实战社区交友交流群更换为:602180461,靓仔/靓女可以重新申请加入哦~

统计用户相关数据 ​


接口功能 ​

统计用户相关数据

URL ​

http://ceshi2.dishait.cn/api/v1/user/getcounts/:id

支持格式 ​

JSON

HTTP请求方式 ​

GET

HEADERS ​
参数必选类型说明
tokenfalsestringtoken
请求参数 ​
参数必选类型说明
idtrueint用户id
接口示例 ​

地址:http://ceshi2.dishait.cn/api/v1/user/getcounts/12

json5
{
    "msg": "获取成功",
    "data": {
        "post_count": 6,
        "comments_count": 3,
        "today_posts_count": 0,
        "withfollow_count": 2,
        "withfen_count": 2,
        "total_ding_count": 0,
        "friend_count": 2
    }
}