src/Biz/User/Service/NotificationService.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php

namespace Biz\User\Service;

interface NotificationService
{
    /**
     * 给用户发送通知.
     *
     * @param int    $userId  通知接收方用户ID
     * @param string $type    通知类型
     * @param mixed  $content 通知内容,可以为string,array
     */
    public function notify($userId, $type, $content);

    /**
     * 获得用户最新的通知.
     *
     * @param int $userId 用户ID
     * @param int $start  取通知记录的开始行数
     * @param int $limit  取通知记录的行数
     *
     * @return array 用户最新的通知
     */
    public function searchNotificationsByUserId($userId, $start, $limit);

    public function isSelectNotification($notifications, $id);

    public function countNotificationsByUserId($userId);

    public function clearUserNewNotificationCounter($userId);

    public function searchNotifications($conditions, $orderBy, $start, $limit);

    public function countNotifications($conditions);

    public function findBatchIdsByUserIdAndType($userId, $type);
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。