dataLists(new AdLists()); } /** * @notes 添加广告 * @return \think\response\Json * @author ljj * @date 2022/2/14 7:00 下午 */ public function add() { $params = (new AdValidate())->post()->goCheck('add'); (new AdLogic())->add($params); return $this->success('操作成功',[],1,1); } /** * @notes 查看广告详情 * @return \think\response\Json * @author ljj * @date 2022/2/15 10:14 上午 */ public function detail() { $params = (new AdValidate())->get()->goCheck('detail'); $result = (new AdLogic())->detail($params['id']); return $this->success('获取成功',$result); } /** * @notes 编辑广告 * @return \think\response\Json * @author ljj * @date 2022/2/15 10:24 上午 */ public function edit() { $params = (new AdValidate())->post()->goCheck('edit'); (new AdLogic())->edit($params); return $this->success('操作成功',[],1,1); } /** * @notes 删除广告 * @return \think\response\Json * @author ljj * @date 2022/2/15 10:32 上午 */ public function del() { $params = (new AdValidate())->post()->goCheck('del'); (new AdLogic())->del($params['id']); return $this->success('操作成功',[],1,1); } /** * @notes 修改广告状态 * @return \think\response\Json * @author ljj * @date 2022/2/15 10:39 上午 */ public function status() { $params = (new AdValidate())->post()->goCheck('status'); (new AdLogic())->status($params); return $this->success('操作成功',[],1,1); } }