Room.php 527 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace app\api\controller\live;
  3. use app\api\controller\Controller;
  4. use app\api\model\wxapp\LiveRoom as LiveRoomModel;
  5. /**
  6. * 微信小程序直播列表
  7. * Class Room
  8. * @package app\api\controller\live
  9. */
  10. class Room extends Controller
  11. {
  12. /**
  13. * 获取直播间列表
  14. * @return mixed
  15. * @throws \think\exception\DbException
  16. */
  17. public function lists()
  18. {
  19. $model = new LiveRoomModel;
  20. $list = $model->getList();
  21. return $this->renderSuccess(compact('list'));
  22. }
  23. }