修改模型模版
This commit is contained in:
parent
2b4f9823ff
commit
0ef84fea08
@ -19,7 +19,7 @@ TMP;
|
|||||||
{
|
{
|
||||||
if (!$hasDeletedAt) {
|
if (!$hasDeletedAt) {
|
||||||
return <<<TMP
|
return <<<TMP
|
||||||
use BaseOptionsTrait;
|
use BaseOptionsTrait,ScopeTrait;
|
||||||
|
|
||||||
|
|
||||||
TMP;
|
TMP;
|
||||||
@ -38,6 +38,7 @@ TMP;
|
|||||||
return <<<TMP
|
return <<<TMP
|
||||||
use think\Model;
|
use think\Model;
|
||||||
use catcher\\traits\db\BaseOptionsTrait;
|
use catcher\\traits\db\BaseOptionsTrait;
|
||||||
|
use catcher\\traits\db\ScopeTrait;
|
||||||
|
|
||||||
|
|
||||||
TMP;
|
TMP;
|
||||||
@ -57,7 +58,6 @@ TMP;
|
|||||||
{
|
{
|
||||||
if ($name) {
|
if ($name) {
|
||||||
return <<<TMP
|
return <<<TMP
|
||||||
|
|
||||||
protected \$name = '{$name}';
|
protected \$name = '{$name}';
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user