优化代码

This commit is contained in:
不做码农
2023-05-12 15:08:24 +08:00
parent 4227f68900
commit ca22b17104
10 changed files with 67 additions and 39 deletions

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())
{