dataLists(new MatchLists()); } public function detail() { $params = (new MatchValidate())->goCheck('detail'); $result = MatchLogic::detail($params); return $this->data($result); } public function edit() { $params = (new MatchValidate())->post()->goCheck('edit'); $result = MatchLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(MatchLogic::getError()); } public function delete() { $params = (new MatchValidate())->post()->goCheck('delete'); MatchLogic::delete($params); return $this->success('删除成功', [], 1, 1); } }