Files
CompanyProject/芳林公司项目/www.zhiyuanhelp.com/application/admin/model/AuthNode.php
2024-09-27 01:32:49 +08:00

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('保存失败');
}
}