Files
webman-buildadmin/app/admin/library/crud/stubs/mixins/controller/controller.stub

26 lines
569 B
Plaintext

<?php
namespace {%namespace%};
{%use%}
use app\common\controller\Backend;
use support\Response;
use Webman\Http\Request as WebmanRequest;
/**
* {%tableComment%}
*/
class {%className%} extends Backend
{
/**
* {%modelName%}模型对象
* @var object|null
* @phpstan-var \{%modelNamespace%}\{%modelName%}|null
*/
protected ?object $model = null;
{%attr%}{%initialize%}
{%methods%}
/**
* 若需重写查看、编辑、删除等方法,请复制 @see \app\admin\library\traits\Backend 中对应的方法至此进行重写
*/
}