介绍
1、解决接口使用已有的权限
2、避免二次设置权限
权限继承
https://doc.rg1008.com/docs/rg_pass_api/rg_pass_api-1dacrt2ju6vck
权限共享
https://doc.rg1008.com/docs/rg_pass_log/rg_pass_log-1duhkv57a8c9o
栏目管理(获取相关信息)
namespace RG3.PF.Abstractions.Entity
{
/// <summary>
/// 验证参数
/// </summary>
public class PopedomVerifyEnity
{
/// <summary>
/// 对应 _popeResField
/// </summary>
public string PopeResField { get; set; }
/// <summary>
/// 对应 _popeMkey
/// </summary>
public string PopeMkey { get; set; }
/// <summary>
/// 对应 _menuId
/// </summary>
public string PopeMenuId { get; set; }
/// <summary>
/// 对应 _verifyMenuId
/// </summary>
public string VerifyMenuId { get; set; }
}
}
配置文件设置
C:\0_RG\Code\RG6.PF\rg3-pf\RG3.Web.Host.PaaS\Config\Mapper\basis\zentao\mapper_zt-scripture-user_sql__responsefield.json
"manager": {
"popedomVerify": {
// #region 权限共享(直接使用个人信息修改权限)
"popeMkey": "bo-user", // 关联模块
"popeResField": "my_detail", // 引用field
"popeMenuId": "bt-deve-bt-20200-c197f4fb-153b-46b4", // 关联栏目
"verifyMenuId": "bt-deve-bt-20200-c197f4fb-153b-46b4" //
// #endregion 权限共享
}
},
"manager_detail": {
"popedomVerify": {
// #region 权限共享(直接使用个人信息修改权限)
"popeMkey": "bo-user", // 关联模块
"popeResField": "my_detail", // 引用field
"popeMenuId": "bt-deve-bt-20200-c197f4fb-153b-46b4", // 关联栏目
"verifyMenuId": "bt-deve-bt-20200-c197f4fb-153b-46b4" //
// #endregion 权限共享
}
}
文档更新时间: 2023-05-20 19:12 作者:admin