Skip to content

Commit

Permalink
Merge 6bc8a70 into a1bbf4e
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinywan committed Sep 24, 2020
2 parents a1bbf4e + 6bc8a70 commit 22a7dad
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/facade/Enforcer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,31 @@

use think\Facade;


/**
* @see \Casbin\Enforcer
* @package tauthz\facade
* @mixin \Casbin\Enforcer
* @method mixed enforce(string $subject,string $object,string $action) static 权限检查
* @method mixed addPolicy(string $subject,string $object,string $action) static 当前策略添加授权规则
* @method mixed hasPolicy(string $subject,string $object,string $action) static 确定是否存在授权规则
* @method mixed removePolicy(string $subject,string $object,string $action) static 当前策略移除授权规则
* @method mixed getRolesForUser(string $username) static 获取用户具有的角色
* @method mixed getUsersForRole(string $role) static 获取具有角色的用户
* @method mixed hasRoleForUser(string $username, string $role) static 确定用户是否具有角色
* @method mixed addRoleForUser(string $username, string $role) static 为用户添加角色
* @method mixed deleteRoleForUser(string $username, string $role) static 删除用户的角色
* @method mixed deleteRolesForUser(string $username) static 删除用户的所有角色
* @method mixed deleteUser(string $username) static 删除一个用户
* @method mixed deleteRole(string $role) static 删除一个角色
* @method mixed deletePermission(string $policy) static 删除权限
* @method mixed addPermissionForUser(string $username,string $policy) static 为用户或角色添加权限
* @method mixed deletePermissionForUser(string $username,string $policy) static 删除用户或角色的权限
* @method mixed deletePermissionsForUser(string $username) static 删除用户或角色的权限
* @method mixed getPermissionsForUser(string $username) static 获取用户或角色的权限
* @method mixed hasPermissionForUser(string $username,string $policy) static 确定用户是否具有权限
* @method mixed getImplicitRolesForUser(string $username) static 获取用户具有的隐式角色
* @method mixed getImplicitPermissionsForUser(string $username) static 获取用户具有的隐式角色
*/
class Enforcer extends Facade
{
Expand Down

0 comments on commit 22a7dad

Please sign in to comment.