\app\service\adminAuthServiceFacade

后台权限服务门面

Summary

Methods
Properties
Constants
setNoNeedLogin()
setNoNeedAuth()
needLogin()
needAuth()
getAuthList()
hasAuth()
No public properties found
No constants found
getFacadeClass()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

setNoNeedLogin()

setNoNeedLogin(mixed  $noNeedLogin) : mixed

设置不需要登录的方法名数组

Parameters

mixed $noNeedLogin

Returns

mixed

setNoNeedAuth()

setNoNeedAuth(mixed  $noNeedAuth) : mixed

设置不需要鉴权的方法名数组

Parameters

mixed $noNeedAuth

Returns

mixed

needLogin()

needLogin() : mixed

当前节点是否需要登录

Returns

mixed

needAuth()

needAuth() : mixed

当前节点是否需要鉴权

Returns

mixed

getAuthList()

getAuthList(mixed  $userId) : mixed

获取某后台管理员拥有的权限列表

Parameters

mixed $userId

Returns

mixed

hasAuth()

hasAuth(mixed  $userId, mixed  $node) : mixed

某用户是否拥有某个节点的权限

Parameters

mixed $userId
mixed $node

Returns

mixed

getFacadeClass()

getFacadeClass()