Watch.php 807 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Content\V1;
  3. use Dever;
  4. class Watch
  5. {
  6. /**
  7. * @api {get} v1/watch.submit 用户观看
  8. * @apiVersion 1.0.0
  9. * @apiName watch.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} id 课程id
  18. *
  19. * @apiSuccess {Number} id 观看id
  20. *
  21. * @apiSuccessExample 操作成功
  22. * {"status":1,"code":1,"msg":"success","data":1}
  23. *
  24. * @apiErrorExample 操作失败
  25. * {"status":2,"code":1,"msg":"\u9519\u8bef\u7684\u5c0f\u7a0b\u5e8fid"}
  26. */
  27. public function submit_api()
  28. {
  29. return Dever::load('comment/watch.submit');
  30. }
  31. }