dataLists(new PublishLists()); } /** * @desc 详情 */ public function detail() { try { $params = (new PublishValidate())->get()->goCheck('detail'); $result = PublishLogic::detail($params); if ($result) { return $this->data(PublishLogic::getReturnData()); } return $this->fail(PublishLogic::getError()); } catch (HttpResponseException $e) { return $this->fail($e->getResponse()->getData()['msg'] ?? ''); } } public function delete() { try { $params = (new PublishValidate())->post()->goCheck('delete'); $result = PublishLogic::deleteSvPublishSettingAccount($params); if ($result) { return $this->success(); } return $this->fail(PublishLogic::getError()); } catch (HttpResponseException $e) { return $this->fail($e->getResponse()->getData()['msg'] ?? ''); } } public function recordLists(){ try { $params = (new PublishDetailValidate())->get()->goCheck('lists'); return $this->dataLists(new PublishDetailLists()); } catch (HttpResponseException $e) { return $this->fail($e->getResponse()->getData()['msg'] ?? ''); } } }