权限共享(解决配置文件共享统一权限)
RG3.BO.Auth\Provider\PopedomProvider.cs RG3.PF.Abstractions\Entity\PopedomVerifyEnity.cs
if (pfGloal.PopedomVerify != null)
{
if (!string.IsNullOrEmpty(pfGloal.PopedomVerify.PopeMkey))
{
dictionaryUrl["_popeMkey"] = pfGloal.PopedomVerify.PopeMkey;
}
if (!string.IsNullOrEmpty(pfGloal.PopedomVerify.PopeResField))
{
dictionaryUrl["_popeResField"] = pfGloal.PopedomVerify.PopeResField;
}
if (!string.IsNullOrEmpty(pfGloal.PopedomVerify.PopeMenuId))
{
dictionaryUrl["_menuId"] = pfGloal.PopedomVerify.PopeMenuId;
}
if (!string.IsNullOrEmpty(pfGloal.PopedomVerify.VerifyMenuId))
{
dictionaryUrl["_verifyMenuId"] = pfGloal.PopedomVerify.VerifyMenuId;
}
}
ResponseField配置
"manager": {
"auth": true,
"popedomVerify": {
// #region 权限共享
"popeMkey": "", // 关联模块
"popeResField": "", // 引用field
"popeMenuId": "", // 关联栏目
"verifyMenuId": "" //
// #endregion 权限共享
}
},
文档更新时间: 2022-06-20 16:40 作者:admin