dataLists(new UserLists()); } public function add() { $params = (new UserValidate())->post()->goCheck('storeAdd'); d($params); $result = UserLogic::StoreAdd($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(UserLogic::getError()); } public function detail() { $params = (new UserValidate())->goCheck('detail'); $detail = UserLogic::detail($params['id']); return $this->success('', $detail); } }