littleSharing
  1. 评论
littleSharing
  • 评论
    • 评论列表
      GET
    • 评论操作
      POST
    • 获取评论的点赞列表
      GET
    • 评论点赞操作
      POST
  • 消息
    • 发送消息
      POST
    • 获取消息
      GET
    • 删除消息
      POST
    • 获取所有类型的未读消息的数量
      GET
    • 改变消息状态为已读
      POST
  • 文章
    • 上传文章配图
      POST
    • 上传文章封面图片
      POST
    • 获取文章列表
      GET
    • 上传文章
      POST
    • 新增文章标签
      POST
    • 获取文章内容
      GET
    • 上传文章书签
      POST
    • 获取文章书签
      GET
    • 删除文章书签
      POST
    • 删除文章
      POST
    • 编辑文章
      POST
    • 更新趋势
      POST
    • 增加文章浏览量
      POST
    • 获取文章趋势列表
      GET
    • 查询文章
      GET
    • 获取相似文章
      GET
    • 获取最新发布的五篇文章
      GET
    • 保存文章内容
      POST
    • 删除文章标签
      POST
  • 用户
    • 注册用户
    • 用户登录
    • 上传头像图片
    • 上传背景图片
    • 获取用户的关键词
    • 获取文章标签列表(发布文章处)
    • 获取用户信息
    • 编辑用户信息
    • 获取用户点赞总数
    • 获取用户收藏总数
    • 获取用户被点赞文章列表
    • 获取用户被收藏文章列表
    • 用户关注操作
    • 获取用户关注列表
    • 获取用户粉丝列表
    • 获取用户发布文章的标签
    • 点赞操作
    • 收藏操作
    • 获取用户收藏列表
    • 获取用户点赞列表
    • 获取某个用户发布的文章列表(简要信息)
    • 获取某个用户发布的文章列表(详细信息)
  1. 评论

评论列表

已测完
GET
/comment/get-comment-list
在文章详情页面下,查看指定作品的所有评论(按时间倒序)

请求参数

Query 参数
article_id
integer 
可选
要获取评论的文章id
Header 参数
Authorization
string 
用户鉴权token
可选
默认值:
{{token}}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://www.nonhana-server.cn:4000/comment/get-comment-list?article_id' \
--header 'Authorization: {{token}}'

返回响应

🟢200成功
application/json
Body
result_code
integer 
状态码
必需
0-成功,1-失败
>= 0<= 0
result_msg
string  | null 
状态信息
必需
result
array [object {6}] 
返回信息
必需
评论列表
comment_id
integer 
评论id
必需
comment_content
string 
评论内容
必需
create_date
string 
评论发布的时间
必需
likes
integer 
评论的被喜欢次数
必需
commentator
object 
发布这条一级评论的用户信息
必需
response
array [object {7}] 
回复这条评论的评论列表
必需
示例
{
    "result_code": 0,
    "result_msg": "Duis in sit",
    "comment_list": [
        {
            "comment_id": "99",
            "content": "点亮了整个空间,增添了生机。",
            "create_date": "1990-12-20",
            "commentator": {
                "id": 33,
                "name": "音乐天堂",
                "header_photo": "https://cache.4ce.cn/star3/origin/5cb4ff0b9f76197309029abaea0c9bc2.png"
            },
            "response": [
                {
                    "comment_id": "96",
                    "content": "勾勒出了情感的深度和丰富。_勾勒出了情感的深度和丰富。",
                    "response_date": "1989-10-28",
                    "respondent": {
                        "id": 90,
                        "name": "飞翔的鱼",
                        "header_photo": "https://cache.4ce.cn/star3/origin/a4cfc814fcc57e215b1fb5702ecd57c2.png"
                    },
                    "response_to": {
                        "id": "74",
                        "name": "小快乐"
                    },
                    "likes": 87
                },
                {
                    "comment_id": "10",
                    "content": "勾勒出了情感的深度和丰富。 勾勒出了情感的深度和丰富。",
                    "response_date": "2013-02-10",
                    "respondent": {
                        "id": 22,
                        "name": "心灵舞者",
                        "header_photo": "https://cache.4ce.cn/star3/origin/35b878650c310ff76d4b8077cb6accf6.png"
                    },
                    "response_to": {
                        "id": "83",
                        "name": "梦幻旅行家"
                    },
                    "likes": 41
                },
                {
                    "comment_id": "97",
                    "content": "勾勒出了情感的深度和丰富。=勾勒出了情感的深度和丰富。",
                    "response_date": "1988-08-02",
                    "respondent": {
                        "id": 98,
                        "name": "飞翔的鱼",
                        "header_photo": "https://cache.4ce.cn/star3/origin/20a387351ccf1fcd09a4ff0a29e4564d.png"
                    },
                    "response_to": {
                        "id": "20",
                        "name": "理想追寻者"
                    },
                    "likes": 53
                },
                {
                    "comment_id": "63",
                    "content": "细腻的画面,令人沉醉其中。_细腻的画面,令人沉醉其中。",
                    "response_date": "1983-10-20",
                    "respondent": {
                        "id": 12,
                        "name": "心灵舞者",
                        "header_photo": "https://cache.4ce.cn/star3/origin/7cc202c3c32a7388a06f77e24720737a.png"
                    },
                    "response_to": {
                        "id": "55",
                        "name": "奇迹缔造者"
                    },
                    "likes": 7
                }
            ],
            "likes": 43
        },
        {
            "comment_id": "49",
            "content": "引发了深思和想象。",
            "create_date": "2010-09-03",
            "commentator": {
                "id": 58,
                "name": "温柔如水",
                "header_photo": "https://cache.4ce.cn/star3/origin/705ff6228b01b5f8d728a8ec5411b660.png"
            },
            "response": [
                {
                    "comment_id": "20",
                    "content": "感觉到了画家内心的表达。 感觉到了画家内心的表达。",
                    "response_date": "1999-01-24",
                    "respondent": {
                        "id": 56,
                        "name": "奇迹缔造者",
                        "header_photo": "https://cache.4ce.cn/star3/origin/a5d246207783214f1ff0d1ac70d3b833.png"
                    },
                    "response_to": {
                        "id": "97",
                        "name": "温柔如水"
                    },
                    "likes": 87
                }
            ],
            "likes": 1
        },
        {
            "comment_id": "60",
            "content": "线条流畅,构图巧妙。",
            "create_date": "2021-11-06",
            "commentator": {
                "id": 12,
                "name": "梦幻旅行家",
                "header_photo": "https://cache.4ce.cn/star3/origin/35b878650c310ff76d4b8077cb6accf6.png"
            },
            "response": [
                {
                    "comment_id": "85",
                    "content": "引发了深思和想象。=引发了深思和想象。+引发了深思和想象。=引发了深思和想象。",
                    "response_date": "2022-09-19",
                    "respondent": {
                        "id": 12,
                        "name": "幸福掌门人",
                        "header_photo": "https://cache.4ce.cn/star3/origin/a731e64e0ffcadd64658516eb57165c9.png"
                    },
                    "response_to": {
                        "id": "34",
                        "name": "小快乐"
                    },
                    "likes": 65
                },
                {
                    "comment_id": "17",
                    "content": "线条流畅,构图巧妙。=线条流畅,构图巧妙。",
                    "response_date": "2020-06-30",
                    "respondent": {
                        "id": 3,
                        "name": "梦幻旅行家",
                        "header_photo": "https://cache.4ce.cn/star3/origin/ce4cc3991758e34adb709387c7cfcb29.png"
                    },
                    "response_to": {
                        "id": "57",
                        "name": "心跳节拍"
                    },
                    "likes": 19
                },
                {
                    "comment_id": "62",
                    "content": "细腻的画面,令人沉醉其中。/细腻的画面,令人沉醉其中。",
                    "response_date": "1976-10-02",
                    "respondent": {
                        "id": 19,
                        "name": "幸福掌门人",
                        "header_photo": "https://cache.4ce.cn/star3/origin/e38665178255ed845dd4873f94848d2f.png"
                    },
                    "response_to": {
                        "id": "96",
                        "name": "自由飞翔"
                    },
                    "likes": 72
                },
                {
                    "comment_id": "74",
                    "content": "极富创意,独具一格。+极富创意,独具一格。",
                    "response_date": "1994-11-24",
                    "respondent": {
                        "id": 54,
                        "name": "美梦成真",
                        "header_photo": "https://cache.4ce.cn/star3/origin/8a12b228f8628e0d0f01fe6fcd3ff3ff.png"
                    },
                    "response_to": {
                        "id": "60",
                        "name": "心灵舞者"
                    },
                    "likes": 47
                }
            ],
            "likes": 98
        },
        {
            "comment_id": "93",
            "content": "线条流畅,构图巧妙。",
            "create_date": "1985-03-16",
            "commentator": {
                "id": 49,
                "name": "热情阳光",
                "header_photo": "https://cache.4ce.cn/star3/origin/a5d246207783214f1ff0d1ac70d3b833.png"
            },
            "response": [
                {
                    "comment_id": "2",
                    "content": "勾勒出了情感的深度和丰富。-勾勒出了情感的深度和丰富。",
                    "response_date": "2016-06-04",
                    "respondent": {
                        "id": 94,
                        "name": "心灵舞者",
                        "header_photo": "https://cache.4ce.cn/star3/origin/2a0a4b15cd95e7d8121b9dea2f4835c7.png"
                    },
                    "response_to": {
                        "id": "9",
                        "name": "小快乐"
                    },
                    "likes": 95
                },
                {
                    "comment_id": "6",
                    "content": "给人以平静和宁静的感觉。_给人以平静和宁静的感觉。",
                    "response_date": "2009-12-28",
                    "respondent": {
                        "id": 5,
                        "name": "温柔如水",
                        "header_photo": "https://cache.4ce.cn/star3/origin/e38665178255ed845dd4873f94848d2f.png"
                    },
                    "response_to": {
                        "id": "83",
                        "name": "自由飞翔"
                    },
                    "likes": 42
                },
                {
                    "comment_id": "3",
                    "content": "线条流畅,构图巧妙。^线条流畅,构图巧妙。",
                    "response_date": "1991-01-20",
                    "respondent": {
                        "id": 55,
                        "name": "小小幸福",
                        "header_photo": "https://cache.4ce.cn/star3/origin/705ff6228b01b5f8d728a8ec5411b660.png"
                    },
                    "response_to": {
                        "id": "40",
                        "name": "梦想家"
                    },
                    "likes": 32
                }
            ],
            "likes": 88
        }
    ]
}
下一页
评论操作
Built with