😎1、去掉角色分配多余限制(非超级管理员没有全部数据范围权限) 2、忽略特定警告
This commit is contained in:
parent
2f3d2e73d0
commit
18d8dfff19
@ -55,7 +55,7 @@
|
|||||||
// 密码策略
|
// 密码策略
|
||||||
"Cryptogram": {
|
"Cryptogram": {
|
||||||
"CryptoType": "SM2", // 密码加密算法:MD5、SM2、SM4
|
"CryptoType": "SM2", // 密码加密算法:MD5、SM2、SM4
|
||||||
// 新业务系统记得改密匙,通过接口(http://localhost:5005/api/sysCommon/smKeyPair)获取
|
// 业务系统记得改密匙(修改密匙要重新生成数据库/账号表),通过接口(http://localhost:5005/api/sysCommon/smKeyPair)获取
|
||||||
"PublicKey": "04851D329AA3E38C2E7670AFE70E6E70E92F8769CA27C8766B12209A0FFBA4493B603EF7A0B9B1E16F0E8930C0406EA0B179B68DF28E25334BDEC4AE76D907E9E9", // 公钥
|
"PublicKey": "04851D329AA3E38C2E7670AFE70E6E70E92F8769CA27C8766B12209A0FFBA4493B603EF7A0B9B1E16F0E8930C0406EA0B179B68DF28E25334BDEC4AE76D907E9E9", // 公钥
|
||||||
"PrivateKey": "3A61D1D30C6302DABFF36201D936D0143EEF0C850AF28C5CA6D5C045AF8C5C8A" // 私钥
|
"PrivateKey": "3A61D1D30C6302DABFF36201D936D0143EEF0C850AF28C5CA6D5C045AF8C5C8A" // 私钥
|
||||||
}
|
}
|
||||||
|
|||||||
@ -48,7 +48,7 @@
|
|||||||
<PackageReference Include="SSH.NET" Version="2024.2.0" />
|
<PackageReference Include="SSH.NET" Version="2024.2.0" />
|
||||||
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.6.0.1" />
|
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.6.0.1" />
|
||||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||||
<PackageReference Include="TencentCloudSDK.Sms" Version="3.0.1172" />
|
<PackageReference Include="TencentCloudSDK.Sms" Version="3.0.1173" />
|
||||||
<PackageReference Include="UAParser" Version="3.1.47" />
|
<PackageReference Include="UAParser" Version="3.1.47" />
|
||||||
<PackageReference Include="Yitter.IdGenerator" Version="1.0.14" />
|
<PackageReference Include="Yitter.IdGenerator" Version="1.0.14" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@ -217,8 +217,8 @@ public class SysRoleService : IDynamicApiController, ITransient
|
|||||||
{
|
{
|
||||||
switch (dataScope)
|
switch (dataScope)
|
||||||
{
|
{
|
||||||
// 非超级管理员没有全部数据范围权限
|
//// 非超级管理员没有全部数据范围权限
|
||||||
case (int)DataScopeEnum.All: throw Oops.Oh(ErrorCodeEnum.D1016);
|
//case (int)DataScopeEnum.All: throw Oops.Oh(ErrorCodeEnum.D1016);
|
||||||
// 若数据范围自定义,则判断授权数据范围是否有权限
|
// 若数据范围自定义,则判断授权数据范围是否有权限
|
||||||
case (int)DataScopeEnum.Define:
|
case (int)DataScopeEnum.Define:
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
|
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
|
||||||
<NoWarn>1701;1702;1591;8632</NoWarn>
|
<NoWarn>1701;1702;1584;1591;1658;8632</NoWarn>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>disable</Nullable>
|
<Nullable>disable</Nullable>
|
||||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user