Files
premium/app/service/admin/AuthServiceFacade.php
2025-05-18 07:42:27 +00:00

24 lines
751 B
PHP
Executable File

<?php
namespace app\service\admin;
use think\Facade;
/**
* 后台权限服务门面
* @package app\service\admin
* @method static mixed setNoNeedLogin($noNeedLogin) 设置不需要登录的方法名数组
* @method static mixed setNoNeedAuth($noNeedAuth) 设置不需要鉴权的方法名数组
* @method static mixed needLogin() 当前节点是否需要登录
* @method static mixed needAuth() 当前节点是否需要鉴权
* @method static mixed getAuthList($userId) 获取某后台管理员拥有的权限列表
* @method static mixed hasAuth($userId, $node) 某用户是否拥有某个节点的权限
*/
class AuthServiceFacade extends Facade
{
protected static function getFacadeClass()
{
return Auth::class;
}
}