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