|
@@ -341,6 +341,25 @@
|
|
|
* @apiSuccess {String} news.share_content 分享内容
|
|
|
*/
|
|
|
|
|
|
+
|
|
|
+ * @api {get} wonderful/main/?l=view.comment 查看评论列表
|
|
|
+ * @apiVersion 1.0.0
|
|
|
+ * @apiName view.comment
|
|
|
+ * @apiGroup Content
|
|
|
+ *
|
|
|
+ * @apiDescription 查看评论列表
|
|
|
+ *
|
|
|
+ * @apiParam {String} signature signature
|
|
|
+ * @apiParam {Number} id 图文id
|
|
|
+ * @apiParam {Number} type 类型,参考公共参数中的类型设置说明中的type说明
|
|
|
+ *
|
|
|
+ * @apiSuccess {Object[]} comment 评论列表
|
|
|
+ * @apiSuccess {String} comment.id
|
|
|
+ * @apiSuccess {String} comment.username 用户名
|
|
|
+ * @apiSuccess {String} comment.avatar 头像
|
|
|
+ * @apiSuccess {String} comment.content 内容
|
|
|
+ * @apiSuccess {String} comment.cdate 时间
|
|
|
+ */
|
|
|
|
|
|
|
|
|
* @api {get} wonderful/main/?l=view.article 查看图文内容
|
|
@@ -376,6 +395,11 @@
|
|
|
* @apiSuccess {String} comment.avatar 头像
|
|
|
* @apiSuccess {String} comment.content 内容
|
|
|
* @apiSuccess {String} comment.cdate 时间
|
|
|
+
|
|
|
+ *
|
|
|
+ * @apiSuccess {Object[]} user_act 用户行为 当用户登录时有效
|
|
|
+ * @apiSuccess {String} user_act.share 用户分享数
|
|
|
+ * @apiSuccess {String} user_act.up 是否点赞1为点赞,2为未点赞
|
|
|
*/
|
|
|
|
|
|
|
|
@@ -412,6 +436,11 @@
|
|
|
* @apiSuccess {String} comment.avatar 头像
|
|
|
* @apiSuccess {String} comment.content 内容
|
|
|
* @apiSuccess {String} comment.cdate 时间
|
|
|
+
|
|
|
+ *
|
|
|
+ * @apiSuccess {Object[]} user_act 用户行为 当用户登录时有效
|
|
|
+ * @apiSuccess {String} user_act.share 用户分享数
|
|
|
+ * @apiSuccess {String} user_act.up 是否点赞1为点赞,2为未点赞
|
|
|
*/
|
|
|
|
|
|
|
|
@@ -448,6 +477,11 @@
|
|
|
* @apiSuccess {String} comment.avatar 头像
|
|
|
* @apiSuccess {String} comment.content 内容
|
|
|
* @apiSuccess {String} comment.cdate 时间
|
|
|
+
|
|
|
+ *
|
|
|
+ * @apiSuccess {Object[]} user_act 用户行为 当用户登录时有效
|
|
|
+ * @apiSuccess {String} user_act.share 用户分享数
|
|
|
+ * @apiSuccess {String} user_act.up 是否点赞1为点赞,2为未点赞
|
|
|
*/
|
|
|
|
|
|
|
|
@@ -463,7 +497,7 @@
|
|
|
* @apiParam {Number} type type类型
|
|
|
* @apiParam {Number} id 当前的数据id
|
|
|
*
|
|
|
- * @apiSuccess {String} data ok
|
|
|
+ * @apiSuccess {Number} id 当前的数据id
|
|
|
*/
|
|
|
|
|
|
|
|
@@ -477,8 +511,9 @@
|
|
|
* @apiParam {String} signature signature
|
|
|
* @apiParam {Number} type type类型
|
|
|
* @apiParam {Number} id 当前的数据id
|
|
|
+ * @apiParam {String} desc 说明:这是分享的说明介绍,请不要传入该参数,底层页分享时,请把路径path设置为首页的path?scene=signature,type,id signature:当前邀请者的signature | type:当前分享的类型 图文等 | id:当前分享的图文的id,小程序中请判断,如果首页有scene参数,请在正常请求首页数据之后,先发起分享回流接口的请求,然后根据scene参数中的type和id的值,跳转到type所对应的path的详情页即可。
|
|
|
*
|
|
|
- * @apiSuccess {String} data ok
|
|
|
+ * @apiSuccess {Number} id 当前的数据id
|
|
|
*/
|
|
|
|
|
|
|
|
@@ -490,11 +525,11 @@
|
|
|
* @apiDescription 分享回流
|
|
|
*
|
|
|
* @apiParam {String} signature signature
|
|
|
- * @apiParam {Number} type type类型
|
|
|
- * @apiParam {Number} id 当前的数据id
|
|
|
- * @apiParam {String} source_signature 回流的源用户id
|
|
|
+ * @apiParam {Number} type type类型 scene参数中的第二个值
|
|
|
+ * @apiParam {Number} id 当前的数据id scene参数中的第三个值
|
|
|
+ * @apiParam {String} source_signature 回流的源用户id,scene参数中的第一个值
|
|
|
*
|
|
|
- * @apiSuccess {String} data ok
|
|
|
+ * @apiSuccess {Number} id 当前的数据id
|
|
|
*/
|
|
|
|
|
|
|
|
@@ -510,6 +545,6 @@
|
|
|
* @apiParam {Number} id 当前的数据id
|
|
|
* @apiParam {String} content 评论内容
|
|
|
*
|
|
|
- * @apiSuccess {String} data ok
|
|
|
+ * @apiSuccess {Number} id 当前的数据id
|
|
|
*/
|
|
|
|