You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
496 B
19 lines
496 B
<?php
|
|
|
|
namespace app\api\controller;
|
|
use app\admin\model\LiveRoom as LiveRoomModel;
|
|
use think\response\Json;
|
|
|
|
class LiveRoom extends ApiController
|
|
{
|
|
|
|
public function getList(): Json
|
|
{
|
|
if (!$this->request->isPost()) {
|
|
return $this->renderError('不支持GET请求');
|
|
}
|
|
$param = $this->request->post();
|
|
$list = LiveRoomModel::getPageList($param);
|
|
return $this->renderSuccess(['list' => $list['data'], 'count' => $list['count']]);
|
|
}
|
|
}
|
|
|