获取评论接口
GET
http://localhost:3000/api/v1/comments
请求参数
参数名
类型
描述
必填
token
string
token
必填
commentable_type
string
评论类型,为评论对象的表名, {'学校' => 'school', '小区' => 'community'}
必填
commentable_id
integer
评论类型的id
必填
page
string
页码
可选
per_page
string
每页展示数量
可选
成功返回
成功返回示例
失败返回
参数名
类型
描述
必填
success
boolean
返回是否成功
必填
msg
string
提示信息
必填