userNoticeManager = $userNoticeManager; } public function sysnoticeList(SysnoticeListMessage $message) { $page = $message->getPage() ?: 1; $unread = $message->getUnread() ?: 0; $uid = Auth::auth(); $pages = array( 'page' => $page, 'limit' => 20 ); $data = $this->userNoticeManager->systemList($uid, $pages, $unread); if ($pages['page'] == 1) { $likemeOverView = $this->userNoticeManager->likeMeOverView($uid); $inviteOverView = $this->userNoticeManager->inviteOverView($uid); } $message->setResponse([ 'likeme_overview' => $likemeOverView ?? null, 'invite_overview' => $inviteOverView ?? null, 'system' => $data ]); } public function sysnoticeDesc(SysnoticeDescMessage $message) { $uid = Auth::auth(); $data = $this->userNoticeManager->systemListDesc($uid); $message->setResponse($data); } }