src/Biz/Group/Service/Impl/GroupServiceImpl.php

(开头部分) 1KB

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

<?php

namespace Biz\Group\Service\Impl;

use Biz\BaseService;
use Biz\Common\CommonException;
use Biz\Content\Service\FileService;
use Biz\Group\Dao\GroupDao;
use Biz\Group\Dao\MemberDao;
use AppBundle\Common\ArrayToolkit;
use Biz\Group\GroupException;
use Biz\Group\Service\GroupService;
use Codeages\Biz\Framework\Event\Event;

class GroupServiceImpl extends BaseService implements GroupService
{
    public function countMembers($conditions)
    {
        return $this->getGroupMemberDao()->count($conditions);
    }

    public function searchMembers($conditions, $orderBy, $start, $limit)
    {
        return $this->getGroupMemberDao()->search($conditions, $orderBy, $start, $limit);
    }

    public function getGroupsByIds($ids)
    {
        $groups = $this->getGroupDao()->findByIds($ids);

        return ArrayToolkit::index($groups, 'id');
    }

    public function getGroup($id)
    {
        return $this->getGroupDao()->get($id);
    }

    public function searchGroups($conditions, $orderBy, $start, $limit)
    {
        $conditions = $this->prepareGroupConditions($conditions);

        return $this->getGroupDao()->search($conditions, $orderBy, $start, $limit);
    }

    public function updateGroup($id, $fields)
    {
        if (isset($fields['about'])) {
            $fields['about'] = $this->purifyHtml($fields['about']);
        }

        return $this->getGroupDao()->update($id, $fields);
    }

    public function updateMember($id, $fields)
    {
        return $this->getGroupMemberDao()->update($id, $fields);
    }

    public function addGroup($user, $group)

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

AI 解读 AI

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

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