初始化项目

This commit is contained in:
augushong
2021-03-23 18:14:33 +08:00
parent 1f92ae2ce3
commit c76cfa3ae1
273 changed files with 26485 additions and 0 deletions

32
app/model/AdminGroup.php Normal file
View File

@@ -0,0 +1,32 @@
<?php
namespace app\model;
use think\Model;
use think\model\concern\SoftDelete;
/**
* @mixin think\Model
*/
class AdminGroup extends Model
{
//
use SoftDelete;
protected $defaultSoftDelete = 0;
public function getPermissionsAttr($value)
{
return \explode(',',$value);
}
public function setPermissionsAttr($value)
{
if(is_array($value)){
return join(',',$value);
}
return $value;
}
}