更新 app/common/service/generator/core/BaseGenerator.php

This commit is contained in:
mkm 2025-08-21 16:15:12 +08:00
parent 3878a1f2a8
commit a5f0229a48

View File

@ -399,6 +399,17 @@ abstract class BaseGenerator
return $pk; return $pk;
} }
/**
* 获取vue api目录
*/
public function getApiDirContent()
{
if ($this->classDir != $this->getLowerTableName()) {
return $this->classDir . '/' . $this->getLowerTableName();
}else{
return $this->classDir;
}
}
/** /**
* @notes 获取作者信息 * @notes 获取作者信息