Video.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <?php
  2. // +—————————————————————————————————————————————————————————————————————
  3. // | Created by Yunbao
  4. // +—————————————————————————————————————————————————————————————————————
  5. // | Copyright (c) 2013~2022 http://www.yunbaokj.com All rights reserved.
  6. // +—————————————————————————————————————————————————————————————————————
  7. // | Author: https://gitee.com/yunbaokeji
  8. // +—————————————————————————————————————————————————————————————————————
  9. // | Date: 2022-04-30
  10. // +—————————————————————————————————————————————————————————————————————
  11. class Domain_Video {
  12. public function setVideo($data,$music_id) {
  13. $rs = array();
  14. $model = new Model_Video();
  15. $rs = $model->setVideo($data,$music_id);
  16. return $rs;
  17. }
  18. public function setComment($data) {
  19. $rs = array();
  20. $model = new Model_Video();
  21. $rs = $model->setComment($data);
  22. return $rs;
  23. }
  24. public function addView($uid,$videoid) {
  25. $rs = array();
  26. $model = new Model_Video();
  27. $rs = $model->addView($uid,$videoid);
  28. return $rs;
  29. }
  30. public function addLike($uid,$videoid) {
  31. $rs = array();
  32. $model = new Model_Video();
  33. $rs = $model->addLike($uid,$videoid);
  34. return $rs;
  35. }
  36. public function addShare($uid,$videoid) {
  37. $rs = array();
  38. $model = new Model_Video();
  39. $rs = $model->addShare($uid,$videoid);
  40. return $rs;
  41. }
  42. public function addCommentLike($uid,$commentid) {
  43. $rs = array();
  44. $model = new Model_Video();
  45. $rs = $model->addCommentLike($uid,$commentid);
  46. return $rs;
  47. }
  48. public function getVideoList($uid,$p) {
  49. $rs = array();
  50. $model = new Model_Video();
  51. $rs = $model->getVideoList($uid,$p);
  52. return $rs;
  53. }
  54. public function getVideo($uid,$videoid) {
  55. $rs = array();
  56. $model = new Model_Video();
  57. $rs = $model->getVideo($uid,$videoid);
  58. return $rs;
  59. }
  60. public function getComments($uid,$videoid,$p) {
  61. $rs = array();
  62. $model = new Model_Video();
  63. $rs = $model->getComments($uid,$videoid,$p);
  64. return $rs;
  65. }
  66. public function getReplys($uid,$commentid,$last_replyid,$p) {
  67. $rs = array();
  68. $model = new Model_Video();
  69. $rs = $model->getReplys($uid,$commentid,$last_replyid,$p);
  70. return $rs;
  71. }
  72. public function delComments($uid,$videoid,$commentid,$commentuid) {
  73. $rs = array();
  74. $model = new Model_Video();
  75. $rs = $model->delComments($uid,$videoid,$commentid,$commentuid);
  76. return $rs;
  77. }
  78. public function getMyVideo($uid,$p) {
  79. $rs = array();
  80. $model = new Model_Video();
  81. $rs = $model->getMyVideo($uid,$p);
  82. return $rs;
  83. }
  84. public function del($uid,$videoid) {
  85. $rs = array();
  86. $model = new Model_Video();
  87. $rs = $model->del($uid,$videoid);
  88. return $rs;
  89. }
  90. public function getHomeVideo($uid,$touid,$p) {
  91. $rs = array();
  92. $model = new Model_Video();
  93. $rs = $model->getHomeVideo($uid,$touid,$p);
  94. return $rs;
  95. }
  96. public function report($data) {
  97. $rs = array();
  98. $model = new Model_Video();
  99. $rs = $model->report($data);
  100. return $rs;
  101. }
  102. public function getRecommendVideos($uid,$p,$isstart,$mobileid){
  103. $rs = array();
  104. $model = new Model_Video();
  105. $rs = $model->getRecommendVideos($uid,$p,$isstart,$mobileid);
  106. return $rs;
  107. }
  108. public function getReportContentlist() {
  109. $rs = array();
  110. $model = new Model_Video();
  111. $rs = $model->getReportContentlist();
  112. return $rs;
  113. }
  114. public function setConversion($videoid){
  115. $rs = array();
  116. $model = new Model_Video();
  117. $rs = $model->setConversion($videoid);
  118. return $rs;
  119. }
  120. public function getLabelVideoList($uid,$labelid,$p){
  121. $rs = array();
  122. $model = new Model_Video();
  123. $rs = $model->getLabelVideoList($uid,$labelid,$p);
  124. return $rs;
  125. }
  126. public function getClassLists(){
  127. $rs = array();
  128. $model = new Model_Video();
  129. $rs = $model->getClassLists();
  130. return $rs;
  131. }
  132. public function getVideoListByMusic($uid,$musicid,$p){
  133. $rs=array();
  134. $model=new Model_Video();
  135. $rs=$model->getVideoListByMusic($uid,$musicid,$p);
  136. return $rs;
  137. }
  138. public function getMusicInfo($musicid){
  139. $rs = array();
  140. $model = new Model_Video();
  141. $rs = $model->getMusicInfo($musicid);
  142. return $rs;
  143. }
  144. }