注解使用全命名空间调用而不是use

This commit is contained in:
2022-11-19 11:35:36 +08:00
parent 4236f514e9
commit a432778cd3
17 changed files with 56 additions and 74 deletions

View File

@@ -3,12 +3,11 @@
namespace {{controllerNamespace}};
use app\common\controller\AdminController;
use app\admin\service\annotation\ControllerAnnotation;
use app\admin\service\annotation\NodeAnotation;
use think\App;
/**
* @ControllerAnnotation(title="{{controllerAnnotation}}")
* @\app\admin\service\annotation\ControllerAnnotation(title="{{controllerAnnotation}}")
*/
class {{controllerName}} extends AdminController
{

View File

@@ -1,6 +1,6 @@
/**
* @NodeAnotation(title="导出")
* @\app\admin\service\annotation\NodeAnotation(title="导出")
*/
public function export()
{

View File

@@ -1,6 +1,6 @@
/**
* @NodeAnotation(title="列表")
* @\app\admin\service\annotation\NodeAnotation(title="列表")
*/
public function index()
{