文档
测试

查询种植日志评论

GET
planting-log-comments

接口描述

查询日志的评论信息列表

请求参数

参数名
类型
描述
必填
planting_log
int
种植日志ID
必填

响应参数

参数名
类型
描述
必填
id
int
示例:1
必填
content
string
评论内容
必填
planting_log
int
评论日志ID
必填
planting_log
int
示例:1
必填
media_type
string
示例:image
必填
media_file
string
示例:http://ricegrower.oss-cn-zhangjiakou.aliyuncs.com/media%2Fplanting_log%2FNone%2F42e3e5472f.png
必填
created_by
object
数据字典
必填
uid
int
133
必填
nick_name
string
示例:粘粘
必填
created_at
string
示例:2021-03-29T00:54:39.741500+08:00
必填
p_planting_log_comment_file
array
图片地址列表
必填

说明 / 示例

返回结果包含分页信息 ```json { "count": 1, "next": null, "previous": null, "results":[ { "id": 1, "content": "哈哈,这个真好玩", "is_approved": true, "p_planting_log_comment_file": ['https://abc.com/s3.png'] "created_at": "2021-05-16T20:30:44.975270+08:00", "planting_log": 44, "created_by":{"uid": 12, "nick_name": "粘粘"} } ] } ```