record collection getApiOutput method

This commit is contained in:
Yuri Kuznetsov
2025-04-15 09:45:46 +03:00
parent 963fb40b2b
commit 4559f2746e
15 changed files with 52 additions and 81 deletions
@@ -83,10 +83,7 @@ class Notification extends RecordBase
$recordCollection = $this->getNotificationService()->get($userId, $searchParams);
return (object) [
'total' => $recordCollection->getTotal(),
'list' => $recordCollection->getValueMapList(),
];
return $recordCollection->toApiOutput();
}
public function getActionNotReadCount(): int