Skip to content
关注公众号,获取新课通知

发布评论

接口URL

https://sqapi2.dishawang.com/api/v1/comment/save

请求方式

POST

Content-Type

json

请求Header参数

参数名示例值参数类型是否必填参数描述
token36040cbcde65e482739afca7a5465ab750c1c5d5String用户token

请求Body参数

json
{
  "article_id": 1774,
  "content": "哈哈哈"
}

成功响应示例

json
{
  "code": 1,
  "msg": "发布成功",
  "data": {
    "id": 2732,
    "article_id": 1774,
    "comment_id": null,
    "user_id": 7,
    "reply_count": 0,
    "content": "哈哈哈",
    "create_time": "2024-04-07 01:20:03",
    "avatar": "http://sqapi2.dishawang.com/storage/uploads/a48a12a09a6654712f2d430d02dbc572.jpeg",
    "name": "哈哈哈"
  }
}