代码功能更新
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user