XFEExtension.NetCore.ServerInteractive
[DLL] Server interaction extension, including user identity verification and querying in conjunction with AutoConfig
关注
0
Fork
0
Star
0
返回提交历史
Modified
XFEExtension.NetCore.ServerInteractive/Utilities/DataTable/XFEDataTableManagerBuilder.cs
+11
-16
Modified
XFEExtension.NetCore.ServerInteractive/XFEExtension.NetCore.ServerInteractive.csproj
+2
-2
XFEstudio/XFEExtension.NetCore.ServerInteractive
修复表格管理器服务接口传参问题
32f2f66
代码差异
2 个文件
+13
-18
@@ -15,7 +15,7 @@ namespace XFEExtension.NetCore.ServerInteractive.Utilities.DataTable;
15
15
public abstract class XFEDataTableManagerBuilder
16
16
{
17
17
readonly List<IXFEDataTable> dataTableList = [];
18
JsonSerializerOptions userJsonSerializerOptions = new();
18
readonly JsonSerializerOptions userJsonSerializerOptions = new();
19
19
/// <summary>
20
20
/// 执行语句列表
21
21
/// </summary>
@@ -41,6 +41,7 @@ public abstract class XFEDataTableManagerBuilder
41
41
public XFEDataTableManagerBuilder AddTable<T>(XFEDataTable<T> xFEDataTable) where T : IIDModel
42
42
{
43
43
dataTableList.Add(xFEDataTable);
44
ExecuteList.AddRange([$"get_{xFEDataTable.TableNameInRequest}", $"add_{xFEDataTable.TableNameInRequest}", $"change_{xFEDataTable.TableNameInRequest}", $"remove_{xFEDataTable.TableNameInRequest}"]);
44
45
return this;
45
46
}
46
47
@@ -56,22 +57,16 @@ public abstract class XFEDataTableManagerBuilder
56
57
/// <param name="getPermissionLevel">获取数据所需的最小权限</param>
57
58
/// <param name="jsonSerializerOptions">JSON转换器</param>
58
59
/// <returns></returns>
59
public XFEDataTableManagerBuilder AddTable<T, P>(string tabelShowName, int addPermissionLevel, int removePermissionLevel, int changePermissionLevel, int getPermissionLevel, JsonSerializerOptions? jsonSerializerOptions = null) where T : IIDModel where P : XFEProfile
60
public XFEDataTableManagerBuilder AddTable<T, P>(string tabelShowName, int addPermissionLevel, int removePermissionLevel, int changePermissionLevel, int getPermissionLevel, JsonSerializerOptions? jsonSerializerOptions = null) where T : IIDModel where P : XFEProfile => AddTable<T>(new XFEDataTable<T>(typeof(P))
60
61
{
61
var dataTable = new XFEDataTable<T>(typeof(P))
62
{
63
TableShowName = tabelShowName,
64
AddPermissionLevel = addPermissionLevel,
65
RemovePermissionLevel = removePermissionLevel,
66
ChangePermissionLevel = changePermissionLevel,
67
GetPermissionLevel = getPermissionLevel,
68
UserJsonSerializerOptions = userJsonSerializerOptions,
69
JsonSerializerOptions = jsonSerializerOptions
70
};
71
dataTableList.Add(dataTable);
72
ExecuteList.AddRange([$"get_{dataTable.TableNameInRequest}", $"add_{dataTable.TableNameInRequest}", $"change_{dataTable.TableNameInRequest}", $"remove_{dataTable.TableNameInRequest}"]);
73
return this;
74
}
62
TableShowName = tabelShowName,
63
AddPermissionLevel = addPermissionLevel,
64
RemovePermissionLevel = removePermissionLevel,
65
ChangePermissionLevel = changePermissionLevel,
66
GetPermissionLevel = getPermissionLevel,
67
UserJsonSerializerOptions = userJsonSerializerOptions,
68
JsonSerializerOptions = jsonSerializerOptions
69
});
75
70
76
71
/// <summary>
77
72
/// 构建数据表管理器
@@ -5,7 +5,7 @@
5
5
<ImplicitUsings>enable</ImplicitUsings>
6
6
<Nullable>enable</Nullable>
7
7
<GenerateDocumentationFile>True</GenerateDocumentationFile>
8
<Version>1.0.1</Version>
8
<Version>1.0.2</Version>
9
9
<Title>XFEExtension.NetCore.ServerInteractive</Title>
10
10
<RepositoryUrl>https://github.com/XFEstudio/XFEExtension.NetCore.ServerInteractive</RepositoryUrl>
11
11
<AnalysisLevel>latest</AnalysisLevel>
@@ -21,7 +21,7 @@
21
21
<PackageReleaseNotes>
22
22
## 调整
23
23
24
修复用户登录天数没有传参的bug
24
修复表格管理器服务接口传参问题
25
25
26
26
## 新增
27
27