From a5f0229a4890092b1962976f6b50fdb99baf3525 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 21 Aug 2025 16:15:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20app/common/service/generat?= =?UTF-8?q?or/core/BaseGenerator.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/generator/core/BaseGenerator.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app/common/service/generator/core/BaseGenerator.php b/app/common/service/generator/core/BaseGenerator.php index 773f67b..cf9a168 100644 --- a/app/common/service/generator/core/BaseGenerator.php +++ b/app/common/service/generator/core/BaseGenerator.php @@ -399,7 +399,18 @@ abstract class BaseGenerator return $pk; } - + /** + * 获取vue api目录 + */ + public function getApiDirContent() + { + if ($this->classDir != $this->getLowerTableName()) { + return $this->classDir . '/' . $this->getLowerTableName(); + }else{ + return $this->classDir; + } + } + /** * @notes 获取作者信息 * @return mixed|string