First commit

This commit is contained in:
2025-10-02 10:33:06 +08:00
parent 198b8bf2a6
commit c38eed4a22
5512 changed files with 958855 additions and 0 deletions

32
app/admin/model/AdminRole.php Executable file
View File

@@ -0,0 +1,32 @@
<?php
namespace app\admin\model;
use app\BaseModel;
use think\facade\Db;
class AdminRole extends BaseModel
{
//定义表名
protected $name = 'longbing_admin_role';
protected $pk = 'ur_id';
//初始化
function __construct() {
parent::__construct();
}
protected static function init(){
//TODO:初始化内容
}
//创建用户权限
public function createUserRole($data){
$data['ur_id'] = uuid();
$data['create_time'] = $this->time();
return $this->save($data);
}
//删除用户权限
public function delUserRole($filter){
return $this->delRow($filter);
}
}