* [perf story #59903] Add note for batchsavetodonotice and getUnreadCount

This commit is contained in:
wangyidong
2024-07-25 14:04:49 +08:00
committed by 孙广明
parent afddd5c687
commit e2e8e0b3f8
+14
View File
@@ -130,6 +130,13 @@ class messageModel extends model
}
}
/**
* 批量保存待办消息。
* Batch save todo notice.
*
* @access public
* @return array
*/
public function batchSaveTodoNotice(): array
{
$todos = $this->getNoticeTodos();
@@ -339,6 +346,13 @@ class messageModel extends model
return array('turnon' => $this->config->message->browser->turnon, 'pollTime' => $this->config->message->browser->pollTime);
}
/**
* 获取未读消息数量。
* Get unread count.
*
* @access public
* @return int
*/
public function getUnreadCount(): int
{
$account = $this->app->user->account;