Vote.php 905 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Content\V1;
  3. use Dever;
  4. class Vote
  5. {
  6. /**
  7. * @api {get} v1/vote.submit 提交点赞
  8. * @apiVersion 1.0.0
  9. * @apiName vote.submit
  10. * @apiGroup Comment
  11. *
  12. * @apiDescription 用户提交点赞数接口
  13. *
  14. * @apiParam {Number} appid 小程序id
  15. * @apiParam {Number} uid 用户id
  16. * @apiParam {String} session 验证用户的session
  17. * @apiParam {Number} type 评论的类型:1为资讯2为课程3为会议4为评论
  18. * @apiParam {Number} id 点赞的类型id
  19. *
  20. * @apiSuccess {Number} id 点赞id
  21. *
  22. * @apiSuccessExample 操作成功
  23. * {"status":1,"code":1,"msg":"success","data":1}
  24. *
  25. * @apiErrorExample 操作失败
  26. * {"status":2,"code":1,"msg":"\u9519\u8bef\u7684\u5c0f\u7a0b\u5e8fid"}
  27. */
  28. public function submit_api()
  29. {
  30. return Dever::load('comment/vote.submit');
  31. }
  32. }