文档
测试

获取评论列表

POST
HTTP://127.0.0.1:2000/app_api/designer/get_comment

请求参数

参数名
类型
描述
必填
public_id
int
示例:45
必填
type
int
示例:1设计师2动态
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:
必填
data
array
数据列表
必填
id
int
示例:3
必填
user_id
int
示例:1547
必填
public_id
int
示例:45
必填
content
string
示例:真漂亮呀!
必填
status
int
示例:0
必填
add_time
string
示例:2021-11-25 10:31:30
必填
img
object
示例:null
必填
type
int
示例:1
必填
designer_comment_reply
array
数据列表
必填
count
int
示例:0
必填

说明 / 示例

{ "code": 0, "msg": "", "data": [ { "id": 1, //主 "user_id": 1547, "story_id": 15, "content": "真漂亮呀!", "status": 0, "add_time": "2021-11-24 10:39:22", "designer_story_comment_reply": [ { "id": 1, "comment_id": 1, "reply_id": 1, "reply_type": 1, "content": "张三,你好", "from_uid": 1547, "to_uid": 1547, "headimg": null, "username": "", "add_time": null, "user": [ { "id": 1547, "username": "一觉睡到小时候", "headnative": "https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83erHXOIqcPuC7qu6MGuQqQthn8j6yGFpxibkN5icejun6Xjibe3JY1j3c2B4IPIjmT1zr0SQm4WiaPYSlw/132" } ], "count": 1 }, { "id": 2, "comment_id": 1, //主评论id "reply_id": 1, "reply_type": 1, "content": "张三,你好", "from_uid": 1547, //目标用户id "to_uid": 1547, //回复用户id "headimg": null, //目标用户头像 "username": "", //目标用户用户用户名 "add_time": null, //评论时间 "user": [//回复用户信息 { "id": 1547, "username": "一觉睡到小时候", "headnative": "https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83erHXOIqcPuC7qu6MGuQqQthn8j6yGFpxibkN5icejun6Xjibe3JY1j3c2B4IPIjmT1zr0SQm4WiaPYSlw/132" } ], "count": 1//回复评论点赞数 } ], "count": 2 //主评论点赞数 } ] }