src/Biz/Group/Service/Impl/ThreadServiceImpl.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Biz\Group\Service\Impl;
use Biz\BaseService;
use Biz\Thread\Dao\ThreadDao;
use AppBundle\Common\ArrayToolkit;
use Biz\Group\Dao\ThreadCollectDao;
use Biz\Group\Service\ThreadService;
use Codeages\Biz\Framework\Event\Event;
use Biz\Group\ThreadException;
class ThreadServiceImpl extends BaseService implements ThreadService
{
public function getThread($id)
{
return $this->getThreadDao()->get($id);
}
public function searchThreads($conditions, $orderBy, $start, $limit)
{
$orderBys = is_array($orderBy) ? $orderBy : $this->filterSort($orderBy);
return $this->getThreadDao()->search($conditions, $orderBys, $start, $limit);
}
public function countThreads($conditions)
{
return $this->getThreadDao()->count($conditions);
}
public function searchThreadCollects($conditions, $orderBy, $start, $limit)
{
return $this->getThreadCollectDao()->search($conditions, $orderBy, $start, $limit);
}
public function countThreadCollects($conditions)
{
return $this->getThreadCollectDao()->count($conditions);
}
public function searchPostsThreadIds($conditions, $orderBy, $start, $limit)
{
return $this->getThreadPostDao()->searchPostsThreadIds($conditions, $orderBy, $start, $limit);
}
public function countPostsThreadIds($conditions)
{
return $this->getThreadPostDao()->countPostsThreadIds($conditions);
}
public function isCollected($userId, $threadId)
{
$thread = $this->getThreadCollectDao()->getByUserIdAndThreadId($userId, $threadId);
if (empty($thread)) {
return false;
} else {
return true;
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。