用户管理
This commit is contained in:
28
extend/catcher/base/CatchModel.php
Normal file
28
extend/catcher/base/CatchModel.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
namespace catcher\base;
|
||||
|
||||
use catcher\traits\db\BaseOptionsTrait;
|
||||
use catcher\traits\db\TransTrait;
|
||||
use think\model\concern\SoftDelete;
|
||||
|
||||
abstract class BaseModel extends \think\Model
|
||||
{
|
||||
use SoftDelete;
|
||||
use TransTrait;
|
||||
use BaseOptionsTrait;
|
||||
|
||||
protected $createTime = 'created_at';
|
||||
|
||||
protected $updateTime = 'updated_at';
|
||||
|
||||
protected $deleteTime = 'deleted_at';
|
||||
|
||||
protected $autoWriteTimestamp = true;
|
||||
|
||||
protected $limit = 10;
|
||||
|
||||
// 开启
|
||||
public const ENABLE = 1;
|
||||
// 禁用
|
||||
public const DISABLE = 2;
|
||||
}
|
Reference in New Issue
Block a user