优化代码

This commit is contained in:
不做码农
2023-05-12 15:08:43 +08:00
parent cba0f56a33
commit 7bb725deb1
10 changed files with 67 additions and 39 deletions
+1 -3
View File
@@ -1,8 +1,6 @@
using Infrastructure;
using Infrastructure.Attribute;
using System;
using System.Collections.Generic;
using System.Text;
using ZR.Model.System;
using ZR.Service.System.IService;
@@ -32,7 +30,7 @@ namespace ZR.Service.System
/// <returns>角色权限信息</returns>
public List<string> GetRolePermission(SysUser user)
{
List<string> roles = new List<string>();
List<string> roles = new();
// 管理员拥有所有权限
if (user.IsAdmin())
{