优化角色授权菜单逻辑
This commit is contained in:
@@ -6,12 +6,16 @@ namespace ZR.Model.System.Dto
|
||||
{
|
||||
public long RoleId { get; set; }
|
||||
/// <summary>
|
||||
/// 角色分配菜单
|
||||
/// 要添加的菜单集合
|
||||
/// </summary>
|
||||
public List<long> MenuIds { get; set; } = new List<long>();
|
||||
public string RoleName { get; set; }
|
||||
public string RoleKey { get; set; }
|
||||
public int RoleSort { get; set; }
|
||||
public string Status { get; set; }
|
||||
/// <summary>
|
||||
/// 减少菜单集合
|
||||
/// </summary>
|
||||
public List<long> DelMenuIds { get; set; } = new List<long>();
|
||||
}
|
||||
}
|
||||
|
||||
18
ZR.Model/System/Dto/SysRoleMenuDto.cs
Normal file
18
ZR.Model/System/Dto/SysRoleMenuDto.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class SysRoleMenuDto
|
||||
{
|
||||
public long RoleId { get; set; }
|
||||
/// <summary>
|
||||
/// 角色分配菜单
|
||||
/// </summary>
|
||||
public List<long> MenuIds { get; set; } = new List<long>();
|
||||
public string RoleName { get; set; }
|
||||
public string RoleKey { get; set; }
|
||||
public string Create_by { get; set; }
|
||||
public DateTime Create_time{ get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user