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