37 lines
782 B
PHP
37 lines
782 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
namespace App\System\Service;
|
|
|
|
|
|
use App\System\Mapper\SettingConfigGroupMapper;
|
|
use Builder\Abstracts\AbstractService;
|
|
use Builder\Annotation\Transaction;
|
|
|
|
class SettingConfigGroupService extends AbstractService
|
|
{
|
|
/**
|
|
* @var SettingConfigGroupMapper
|
|
*/
|
|
public $mapper;
|
|
|
|
/**
|
|
* SettingConfigGroupService constructor.
|
|
* @param SettingConfigGroupMapper $mapper
|
|
*/
|
|
public function __construct(SettingConfigGroupMapper $mapper)
|
|
{
|
|
$this->mapper = $mapper;
|
|
}
|
|
|
|
/**
|
|
* 删除配置组和其所属配置
|
|
* @param int $id
|
|
* @return bool
|
|
*/
|
|
#[Transaction]
|
|
public function deleteConfigGroup(int $id): bool
|
|
{
|
|
return $this->mapper->deleteGroupAndConfig($id);
|
|
}
|
|
} |