30 lines
575 B
PHP
30 lines
575 B
PHP
<?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('保存失败');
|
|
}
|
|
} |