更新 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,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