refactor: 重构按钮授权方法参数
This commit is contained in:
parent
1cb81805c4
commit
ea670fc1bc
|
@ -10,7 +10,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Bootstrap.Security.Mvc" Version="2.2.16-preview-1" />
|
<PackageReference Include="Bootstrap.Security.Mvc" Version="2.2.16-preview-2" />
|
||||||
<PackageReference Include="Longbow.Configuration" Version="2.2.7" />
|
<PackageReference Include="Longbow.Configuration" Version="2.2.7" />
|
||||||
<PackageReference Include="Longbow.Tasks" Version="1.10.0" />
|
<PackageReference Include="Longbow.Tasks" Version="1.10.0" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.App" />
|
<PackageReference Include="Microsoft.AspNetCore.App" />
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Bootstrap.Security" Version="1.7.0" />
|
<PackageReference Include="Bootstrap.Security" Version="1.8.0-preview-1" />
|
||||||
<PackageReference Include="MongoDB.Driver" Version="2.9.1" />
|
<PackageReference Include="MongoDB.Driver" Version="2.9.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Bootstrap.Security.DataAccess" Version="2.2.13-preview-1" />
|
<PackageReference Include="Bootstrap.Security.DataAccess" Version="2.2.13-preview-4" />
|
||||||
<PackageReference Include="Longbow.Data" Version="2.3.7" />
|
<PackageReference Include="Longbow.Data" Version="2.3.7" />
|
||||||
<PackageReference Include="Longbow.Logging" Version="2.2.13" />
|
<PackageReference Include="Longbow.Logging" Version="2.2.13" />
|
||||||
<PackageReference Include="Longbow.PetaPoco" Version="1.0.2" />
|
<PackageReference Include="Longbow.PetaPoco" Version="1.0.2" />
|
||||||
|
|
|
@ -127,11 +127,11 @@ namespace Bootstrap.DataAccess
|
||||||
public static IEnumerable<BootstrapMenu> RetrieveAllMenus(string userName) => CacheManager.GetOrAdd($"{RetrieveMenusAll}-{userName}", key => DbContextManager.Create<Menu>()?.RetrieveAllMenus(userName), RetrieveMenusAll);
|
public static IEnumerable<BootstrapMenu> RetrieveAllMenus(string userName) => CacheManager.GetOrAdd($"{RetrieveMenusAll}-{userName}", key => DbContextManager.Create<Menu>()?.RetrieveAllMenus(userName), RetrieveMenusAll);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
/// 通过当前用户名与指定菜单路径获取此菜单下所有授权按钮集合 (userName, url, auths) => bool
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="userName"></param>
|
/// <param name="userName">当前操作用户名</param>
|
||||||
/// <param name="url"></param>
|
/// <param name="url">资源按钮所属菜单</param>
|
||||||
/// <param name="auths"></param>
|
/// <param name="auths">资源授权码</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static bool AuthorizateButtons(string userName, string url, string auths) => DbHelper.AuthorizateButtons(userName, url, auths);
|
public static bool AuthorizateButtons(string userName, string url, string auths) => DbHelper.AuthorizateButtons(userName, url, auths);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue