<?php
declare(strict_types=1);

/**
 * 站点模型，对应 sys_site 表
 */
class Site extends Model
{
    protected string $table = 'sys_site';
    protected string $key = 'sys_site_id';

    public function listAll(): array
    {
        return $this->db->select($this->table, ['sys_site_id', 'sys_site_code', 'sys_site_name']);
    }
}
