37 lines
853 B
PHP
37 lines
853 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
namespace App\System\Service;
|
|
|
|
use App\System\Mapper\SystemAppGroupMapper;
|
|
use App\System\Model\SystemAppGroup;
|
|
use Builder\Abstracts\AbstractService;
|
|
|
|
/**
|
|
* app应用分组业务
|
|
* Class SystemAppGroupService
|
|
* @package App\System\Service
|
|
*/
|
|
class SystemAppGroupService extends AbstractService
|
|
{
|
|
/**
|
|
* @var SystemAppGroupMapper
|
|
*/
|
|
public $mapper;
|
|
|
|
public function __construct(SystemAppGroupMapper $mapper)
|
|
{
|
|
$this->mapper = $mapper;
|
|
}
|
|
|
|
/**
|
|
* 获取分组列表 无分页
|
|
* @param array|null $params
|
|
* @param bool $isScope
|
|
* @return array
|
|
*/
|
|
public function getList(?array $params = null, bool $isScope = true): array
|
|
{
|
|
return $this->mapper->getList(['select' => ['id', 'name'], 'status' => SystemAppGroup::ENABLE], $isScope);
|
|
}
|
|
} |