文档
测试

groundCommentDetail

POST
api/v1/groundCommentReplyList

接口描述

钓场评论回复详情

请求参数

参数名
类型
描述
必填
comment_id
integer
评论id
必填

php

$client = new \GuzzleHttp\Client(); $response = $client->post( 'http://sns.shenruxiang.com/api/v1/groundCommentReplyList', [ 'headers' => [ 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'json' => [ 'comment_id' => 3, ], ] ); $body = $response->getBody(); print_r(json_decode((string) $body));

js

const url = new URL( "http://sns.shenruxiang.com/api/v1/groundCommentReplyList" ); let headers = { "Content-Type": "application/json", "Accept": "application/json", }; let body = { "comment_id": 3 } fetch(url, { method: "POST", headers: headers, body: body }) .then(response => response.json()) .then(json => console.log(json));

返回值

{ "code": 0, "msg": "请求成功", "data": { "id": 1, "user_id": 1, "content": "评论", "praise_num": 11, "created_at": "2020-09-22 20:30:03", "reply_list": [ { "id": 2, "user_id": 1, "to_user_id": 22, "comment_id": 1, "content": "评论回复", "praise_num": 11, "created_at": "2020-09-22 20:30:03", "user": { "id": 1, "nick": "秃头已治愈", "avatar": "https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/Q0j4TwGTfTI85ibhJ698WXV4RewMDxcZD8y7cBItBTk4ZfSsY4icPPwYibnrWYoonE5EcpoXy8BYSvmA3xF1pTyQg\/132" }, "comment_priase": null } ], "user": { "id": 1, "nick": "秃头已治愈", "avatar": "https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/Q0j4TwGTfTI85ibhJ698WXV4RewMDxcZD8y7cBItBTk4ZfSsY4icPPwYibnrWYoonE5EcpoXy8BYSvmA3xF1pTyQg\/132" }, "comment_priase": { "comment_id": 1, "user_id": 88, "created_at": "2020-09-22 20:30:55" } } }

bash

curl -X POST \ "http://sns.shenruxiang.com/api/v1/groundCommentReplyList" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{"comment_id":3}'