用户管理

This commit is contained in:
wuyanwen
2019-12-11 20:59:59 +08:00
parent ae7fd47a5d
commit 22064c6178
26 changed files with 1306 additions and 274 deletions

View 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;
}