123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <?php
- // +—————————————————————————————————————————————————————————————————————
- // | Created by Yunbao
- // +—————————————————————————————————————————————————————————————————————
- // | Copyright (c) 2013~2022 http://www.yunbaokj.com All rights reserved.
- // +—————————————————————————————————————————————————————————————————————
- // | Author: https://gitee.com/yunbaokeji
- // +—————————————————————————————————————————————————————————————————————
- // | Date: 2022-04-30
- // +—————————————————————————————————————————————————————————————————————
- class Domain_Video {
- public function setVideo($data,$music_id) {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->setVideo($data,$music_id);
- return $rs;
- }
-
- public function setComment($data) {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->setComment($data);
- return $rs;
- }
- public function addView($uid,$videoid) {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->addView($uid,$videoid);
- return $rs;
- }
- public function addLike($uid,$videoid) {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->addLike($uid,$videoid);
- return $rs;
- }
- public function addShare($uid,$videoid) {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->addShare($uid,$videoid);
- return $rs;
- }
- public function addCommentLike($uid,$commentid) {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->addCommentLike($uid,$commentid);
- return $rs;
- }
- public function getVideoList($uid,$p) {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->getVideoList($uid,$p);
- return $rs;
- }
- public function getVideo($uid,$videoid) {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->getVideo($uid,$videoid);
- return $rs;
- }
- public function getComments($uid,$videoid,$p) {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->getComments($uid,$videoid,$p);
- return $rs;
- }
- public function getReplys($uid,$commentid,$last_replyid,$p) {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->getReplys($uid,$commentid,$last_replyid,$p);
- return $rs;
- }
-
- public function delComments($uid,$videoid,$commentid,$commentuid) {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->delComments($uid,$videoid,$commentid,$commentuid);
- return $rs;
- }
- public function getMyVideo($uid,$p) {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->getMyVideo($uid,$p);
- return $rs;
- }
-
- public function del($uid,$videoid) {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->del($uid,$videoid);
- return $rs;
- }
-
- public function getHomeVideo($uid,$touid,$p) {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->getHomeVideo($uid,$touid,$p);
- return $rs;
- }
-
- public function report($data) {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->report($data);
- return $rs;
- }
- public function getRecommendVideos($uid,$p,$isstart,$mobileid){
- $rs = array();
- $model = new Model_Video();
- $rs = $model->getRecommendVideos($uid,$p,$isstart,$mobileid);
- return $rs;
- }
- public function getReportContentlist() {
- $rs = array();
- $model = new Model_Video();
- $rs = $model->getReportContentlist();
- return $rs;
- }
- public function setConversion($videoid){
- $rs = array();
- $model = new Model_Video();
- $rs = $model->setConversion($videoid);
- return $rs;
- }
- public function getLabelVideoList($uid,$labelid,$p){
- $rs = array();
- $model = new Model_Video();
- $rs = $model->getLabelVideoList($uid,$labelid,$p);
- return $rs;
- }
- public function getClassLists(){
- $rs = array();
- $model = new Model_Video();
- $rs = $model->getClassLists();
- return $rs;
- }
- public function getVideoListByMusic($uid,$musicid,$p){
- $rs=array();
- $model=new Model_Video();
- $rs=$model->getVideoListByMusic($uid,$musicid,$p);
- return $rs;
- }
- public function getMusicInfo($musicid){
- $rs = array();
- $model = new Model_Video();
- $rs = $model->getMusicInfo($musicid);
- return $rs;
- }
- }
|