first commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/*
|
||||
*权限节点模型
|
||||
* */
|
||||
|
||||
namespace app\admin\model;
|
||||
|
||||
|
||||
use app\admin\service\ModelService;
|
||||
|
||||
class AuthNode extends ModelService {
|
||||
|
||||
/**
|
||||
* 绑定的数据表
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'system_auth_node';
|
||||
|
||||
/**
|
||||
* 保存授权信息
|
||||
* @param $insertAll
|
||||
* @return \think\response\Json
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function authorize($insertAll) {
|
||||
$save = $this->saveAll($insertAll);
|
||||
if (!empty($save)) return __success('保存成功!');
|
||||
return __error('保存失败');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user