public async Task<IResponseEntity> PermissionAssignPowerAsync(PermissionAssignPowerRequest req) { var result = await _permissionDomain.PermissionAssignPowerAsync(req.PermissionId, req.RoleIds, req.GroupIds); //清除权限缓存 await _cache.RemoveByPatternAsync(CacheKeyTemplate.PermissionResourceList); return ResponseEntity.Result(result); }
public async Task <IResponseEntity> PermissionAssignPower(PermissionAssignPowerRequest req) { return(await _sysPermissionService.PermissionAssignPowerAsync(req)); }