😎1、去掉角色分配多余限制(非超级管理员没有全部数据范围权限) 2、忽略特定警告

This commit is contained in:
zuohuaijun 2025-02-05 13:15:58 +08:00
parent 2f3d2e73d0
commit 18d8dfff19
4 changed files with 5 additions and 5 deletions

View File

@ -55,7 +55,7 @@
//
"Cryptogram": {
"CryptoType": "SM2", // MD5SM2SM4
// (http://localhost:5005/api/sysCommon/smKeyPair)
// /(http://localhost:5005/api/sysCommon/smKeyPair)
"PublicKey": "04851D329AA3E38C2E7670AFE70E6E70E92F8769CA27C8766B12209A0FFBA4493B603EF7A0B9B1E16F0E8930C0406EA0B179B68DF28E25334BDEC4AE76D907E9E9", //
"PrivateKey": "3A61D1D30C6302DABFF36201D936D0143EEF0C850AF28C5CA6D5C045AF8C5C8A" //
}

View File

@ -48,7 +48,7 @@
<PackageReference Include="SSH.NET" Version="2024.2.0" />
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.6.0.1" />
<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="Yitter.IdGenerator" Version="1.0.14" />
</ItemGroup>

View File

@ -217,8 +217,8 @@ public class SysRoleService : IDynamicApiController, ITransient
{
switch (dataScope)
{
// 非超级管理员没有全部数据范围权限
case (int)DataScopeEnum.All: throw Oops.Oh(ErrorCodeEnum.D1016);
//// 非超级管理员没有全部数据范围权限
//case (int)DataScopeEnum.All: throw Oops.Oh(ErrorCodeEnum.D1016);
// 若数据范围自定义,则判断授权数据范围是否有权限
case (int)DataScopeEnum.Define:
{

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<NoWarn>1701;1702;1591;8632</NoWarn>
<NoWarn>1701;1702;1584;1591;1658;8632</NoWarn>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>
<GenerateDocumentationFile>True</GenerateDocumentationFile>