mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-18 17:48:01 +08:00
🐛fix: #ICGJPH Resource表已经改为SysResource,但代码里面还有Resource相关
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
/// </summary>
|
||||
public string RoleId { get; set; }
|
||||
/// <summary>
|
||||
/// 模块的Code,比如Category/Resource
|
||||
/// 模块的Code,比如Category/SysResource
|
||||
/// </summary>
|
||||
public string ModuleCode { get; set; }
|
||||
/// <summary>
|
||||
|
@@ -77,10 +77,10 @@ namespace OpenAuth.App
|
||||
throw new CommonException("登录已过期", Define.INVALID_TOKEN);
|
||||
}
|
||||
|
||||
var columnFields = loginContext.GetTableColumns("Resource");
|
||||
var columnFields = loginContext.GetTableColumns("SysResource");
|
||||
if (columnFields == null || columnFields.Count == 0)
|
||||
{
|
||||
throw new Exception("请在代码生成界面配置Resource表的字段属性");
|
||||
throw new Exception("请在代码生成界面配置SysResource表的字段属性");
|
||||
}
|
||||
|
||||
|
||||
|
@@ -76,7 +76,7 @@ namespace OpenAuth.App.Test
|
||||
|
||||
app.UnAssignData(new AssignDataReq
|
||||
{
|
||||
ModuleCode = "Resource",
|
||||
ModuleCode = "SysResource",
|
||||
Properties = new string[]{},
|
||||
RoleId = "09ee2ffa-7463-4938-ae0b-1cb4e80c7c13"
|
||||
});
|
||||
|
@@ -86,7 +86,7 @@ namespace OpenAuth.App.Test
|
||||
app.Clear();
|
||||
app.Add(new AddOrUpdateDataPriviReq
|
||||
{
|
||||
SourceCode = "Resource",
|
||||
SourceCode = "SysResource",
|
||||
Description = "资源数据规则",
|
||||
PrivilegeRules = JsonHelper.Instance.Serialize(filterGroup)
|
||||
});
|
||||
|
Reference in New Issue
Block a user