Plus (ThinkSNS+)

Plus (ThinkSNS+)

  • 文档 [New]
  • 文档
  • REST API v2
  • 反馈
  • GitHub

›圈子

基本

  • 概述
  • 启动信息
  • Json Web Token 授权
  • 验证码
  • 位置
  • 标签
  • 消息通知
  • 钱包(旧版本)
  • Plus Pay(新钱包-支付工具)
  • 支付能力
  • 文件
  • 关于我们
  • 广告
  • 举报
  • 积分
  • 环信
  • 评论
  • 文件存储

用户

  • 用户
  • 注册
  • 收到的评论
  • 收到的喜欢
  • 关注
  • 标签
  • 身份认证
  • 找人
  • 排行榜
  • 反馈
  • 打赏用户
  • 未读消息
  • 签到
  • 消息

动态

  • 发布动态
  • 获取动态
  • 删除动态
  • 设置评论收费
  • 评论
  • 喜欢
  • 收藏
  • 置顶
  • 打赏
  • 排行榜
  • 举报
  • 积分部分新增接口
  • 话题

音乐

  • 音乐
  • 专辑
  • 点赞
  • 评论
  • 收藏

问答

  • 概述
  • 话题
  • 问题
  • 评论
  • 回答
  • 回答 · 打赏
  • 回答 · 围观
  • 用户 · 关注问题
  • 用户 · 喜欢回答
  • 用户 · 收藏回答
  • 用户 · 申请精选
  • 排行榜
  • 举报
  • 问答部分积分相关新增接口

资讯

  • 概述
  • 分类
  • 投稿
  • 获取
  • 评论
  • 喜欢
  • 打赏
  • 置顶
  • 收藏
  • 排行榜
  • 举报
  • 资讯部分积分相关新增接口

圈子

  • 概述
  • 分类
  • 圈子
  • 圈子 · 管理
  • 圈子 · 举报
  • 圈子 · 成员
  • 帖子
  • 帖子 · 评论
  • 帖子 · 喜欢
  • 帖子 · 收藏
  • 帖子 · 打赏
  • 帖子 · 置顶
  • 圈子部分积分相关新增接口
Edit

帖子 · 评论

  • 帖子评论列表
  • 评论帖子
  • 删除评论

帖子评论列表

get /group-posts/:post/comments

响应

status 200

参数说明

名称类型说明
limitinteger默认 20 ,数据返回条数 默认为20
afterinegter可选,上次获取到数据最后一条 ID,用于获取该 ID 之后的数据。
{
    "pinneds": [],// 置顶评论列表,同comments结构一样
    "comments": [ // 帖子评论
        {
            "id": 65, // 评论唯一id
            "user_id": 1,//评论人id
            "target_user": 1,// 目标用户
            "reply_user": 0,// 回复的用户
            "body": "测试", // 内容
            "commentable_id": 121,// 资源id
            "commentable_type": "group-posts",// 资源类型
            "created_at": "2017-11-30 03:04:03",
            "updated_at": "2017-11-30 03:04:03",
            "user": {// 回复用户信息
                "id": 1,
                "name": "admin",
                "bio": null,
                "sex": 2,
                "location": "四川省 巴中市 南江县",
                "created_at": "2017-10-23 01:17:34",
                "updated_at": "2017-11-15 07:36:17",
                "avatar": "http://thinksns-plus.dev/api/v2/users/1/avatar",
                "bg": null,
                "verified": {
                    "type": "user",
                    "icon": "http://thinksns-plus.dev/storage/certifications/000/000/0us/er.png",
                    "description": "1111"
                },
                "extra": {
                    "user_id": 1,
                    "likes_count": 5,
                    "comments_count": 13,
                    "followers_count": 0,
                    "followings_count": 6,
                    "updated_at": "2017-11-30 03:04:06",
                    "feeds_count": 33,
                    "questions_count": 2,
                    "answers_count": 0,
                    "checkin_count": 7,
                    "last_checkin_count": 1
                }
            },
            "reply": {//被回复用户信息
                "id": 1,
                "name": "admin",
                "bio": null,
                "sex": 2,
                "location": "四川省 巴中市 南江县",
                "created_at": "2017-10-23 01:17:34",
                "updated_at": "2017-11-15 07:36:17",
                "avatar": "http://thinksns-plus.dev/api/v2/users/1/avatar",
                "bg": null,
                "verified": {
                    "type": "user",
                    "icon": "http://thinksns-plus.dev/storage/certifications/000/000/0us/er.png",
                    "description": "1111"
                },
                "extra": {
                    "user_id": 1,
                    "likes_count": 5,
                    "comments_count": 13,
                    "followers_count": 0,
                    "followings_count": 6,
                    "updated_at": "2017-11-30 03:04:06",
                    "feeds_count": 33,
                    "questions_count": 2,
                    "answers_count": 0,
                    "checkin_count": 7,
                    "last_checkin_count": 1
                }
            },

        },
    ]
}

评论帖子

POST /group-posts/:post/comments

响应

status 201

参数说明

名称类型说明
bodystring必须 评论内容 最大长度225
reply_userinegter回复的用户的id

删除评论

DELETE /group-posts/:post/comments/:comment

响应

status 204 not content 
← 帖子帖子 · 喜欢 →
  • 帖子评论列表
    • 响应
    • 参数说明
  • 评论帖子
    • 响应
    • 参数说明
  • 删除评论
Plus (ThinkSNS+)
More
GitHubStar
Copyright © 2019 Chengdu ZhiYiChuangXiang Technology Co., Ltd. All rights reserved.