From 1ab94221e7dc2371386bf48dfd0dca2780bc12d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 29 Sep 2021 11:41:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-gii/GiiModel.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kiri-gii/GiiModel.php b/kiri-gii/GiiModel.php index ac200384..58758286 100644 --- a/kiri-gii/GiiModel.php +++ b/kiri-gii/GiiModel.php @@ -70,10 +70,10 @@ namespace ' . $namespace . '; } if (!str_contains($imports, 'Database\Annotation\Set')) { - $html .= 'use Annotation\Model\Set;' . PHP_EOL; + $html .= 'use Database\Annotation\Set;' . PHP_EOL; } if (!str_contains($imports, 'Database\Annotation\Get')) { - $html .= 'use Annotation\Model\Get;' . PHP_EOL; + $html .= 'use Database\Annotation\Get;' . PHP_EOL; } } catch (\Throwable $e) { logger()->addError($e, 'throwable'); @@ -90,8 +90,8 @@ use Exception; use Annotation\Target; use Kiri\Core\Json; use Database\Connection; -use Annotation\Model\Get; -use Annotation\Model\Set; +use Database\Annotation\Get; +use Database\Annotation\Set; use Annotation\Model\Relation; use Database\Model; ' . PHP_EOL;