33 lines
604 B
PHP
33 lines
604 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace App\System\Service;
|
|
|
|
use App\System\Mapper\SystemApiMapper;
|
|
use Builder\Abstracts\AbstractService;
|
|
|
|
/**
|
|
* 接口表服务类
|
|
*/
|
|
class SystemApiService extends AbstractService
|
|
{
|
|
/**
|
|
* @var SystemApiMapper
|
|
*/
|
|
public $mapper;
|
|
|
|
public function __construct(SystemApiMapper $mapper)
|
|
{
|
|
$this->mapper = $mapper;
|
|
}
|
|
|
|
/**
|
|
* 获取字段列
|
|
* @param string $id
|
|
* @return array
|
|
*/
|
|
public function getColumnListByApiId(string $id): array
|
|
{
|
|
return $this->mapper->getColumnListByApiId($id);
|
|
}
|
|
} |