新建根评论接口
POST
http://localhost:3000/api/v1/comments/create
接口描述
新建根评论
请求参数
参数名
类型
描述
必填
token
string
token
必填
commentable_type
string
评论类型,为评论对象的表名, {'学校' => 'school', '小区' => 'community'}
必填
commentable_id
integer
评论类型的id
必填
content
string
评论内容
必填
成功返回
成功返回示例
失败返回
参数名
类型
描述
必填
success
boolean
返回是否成功
必填
msg
string
提示信息
必填