文档
测试

7、发表评论

POST
http://localhost:88/api/post/comment/add_comment

请求头

参数名
类型
描述
必填
Authorization
string
jwt身份认证信息
必填

请求参数

参数名
类型
描述
必填
content
string
评论内容
必填
topic_id
string
文章id
必填

请求参数示例

```json { "content": "很棒的文章!对我帮助很大", "topic_id": "1494255011344834561" }

响应参数

参数名
类型
描述
必填
msg
string
提示信息
必填
code
int
0-成功,其他业务码-失败
必填
data
object
返回的数据信息
必填
id
string
评论id
必填
content
string
评论内容
必填
userId
string
用户id
必填
topicId
string
文章id
必填
createTime
string
创建时间
必填
modifyTime
object
修改时间
必填

响应数据示例

```json { "msg": "success", "code": 0, "data": { "id": "1494291869416271873", "content": "很棒的文章!对我帮助很大", "userId": "1491351452034928641", "topicId": "1494255011344834561", "createTime": "2022-02-17 12:45:18", "modifyTime": null } }