mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 02:22:48 +08:00
更新注解版本
This commit is contained in:
@@ -30,4 +30,11 @@ return [
|
||||
'可以运行 php think admin:update:code --update-version v2.0.74 命令自动替换',
|
||||
],
|
||||
],
|
||||
[
|
||||
'version' => 'v2.0.100',
|
||||
'desc' => [
|
||||
'本次更新了注解的版本,修复了节点更新的bug,请手动更新注解库,可执行以下命令:',
|
||||
'composer require "doctrine/annotations:2.*"',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
@@ -60,7 +60,6 @@ class NodeBase
|
||||
list($nodeList, $controllerList) = [[], $this->getControllerList()];
|
||||
|
||||
if (!empty($controllerList)) {
|
||||
AnnotationRegistry::registerLoader('class_exists');
|
||||
$parser = new DocParser();
|
||||
$parser->setIgnoreNotImportedAnnotations(true);
|
||||
$reader = new AnnotationReader($parser);
|
||||
|
||||
@@ -11,7 +11,7 @@ use app\admin\service\annotation\NodeAnotation;
|
||||
trait CurdTraitBase
|
||||
{
|
||||
/**
|
||||
* @NodeAnotation(title="列表")
|
||||
* @\app\admin\service\annotation\NodeAnotation(title="列表")
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
@@ -44,7 +44,7 @@ trait CurdTraitBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @NodeAnotation(title="添加")
|
||||
* @\app\admin\service\annotation\NodeAnotation(title="添加")
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
@@ -64,7 +64,7 @@ trait CurdTraitBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @NodeAnotation(title="编辑")
|
||||
* @\app\admin\service\annotation\NodeAnotation(title="编辑")
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
@@ -87,7 +87,7 @@ trait CurdTraitBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @NodeAnotation(title="删除")
|
||||
* @\app\admin\service\annotation\NodeAnotation(title="删除")
|
||||
*/
|
||||
public function delete($id)
|
||||
{
|
||||
@@ -103,7 +103,7 @@ trait CurdTraitBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @NodeAnotation(title="导出")
|
||||
* @\app\admin\service\annotation\NodeAnotation(title="导出")
|
||||
*/
|
||||
public function export()
|
||||
{
|
||||
@@ -131,7 +131,7 @@ trait CurdTraitBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @NodeAnotation(title="属性修改")
|
||||
* @\app\admin\service\annotation\NodeAnotation(title="属性修改")
|
||||
*/
|
||||
public function modify()
|
||||
{
|
||||
|
||||
@@ -12,12 +12,12 @@ use think\console\Output;
|
||||
|
||||
class VersionBase extends Command
|
||||
{
|
||||
public const VERSION = 'v2.0.99';
|
||||
public const VERSION = 'v2.0.100';
|
||||
|
||||
public const LAYUI_VERSION = '2.8.17';
|
||||
|
||||
public const COMMENT = [
|
||||
'优化tableData;新增dataGet;',
|
||||
'更新注解版本;',
|
||||
'发布新版本',
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user