feat: add admin menu management crud
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using MediatR;
|
||||
using System.Collections.Generic;
|
||||
using TakeoutSaaS.Application.Identity.Contracts;
|
||||
|
||||
namespace TakeoutSaaS.Application.Identity.Commands;
|
||||
|
||||
/// <summary>
|
||||
/// 更新菜单命令。
|
||||
/// </summary>
|
||||
public sealed record UpdateMenuCommand : IRequest<MenuDefinitionDto?>
|
||||
{
|
||||
public long Id { get; init; }
|
||||
public long ParentId { get; init; }
|
||||
public string Name { get; init; } = string.Empty;
|
||||
public string Path { get; init; } = string.Empty;
|
||||
public string Component { get; init; } = string.Empty;
|
||||
public string Title { get; init; } = string.Empty;
|
||||
public string? Icon { get; init; }
|
||||
public bool IsIframe { get; init; }
|
||||
public string? Link { get; init; }
|
||||
public bool KeepAlive { get; init; }
|
||||
public int SortOrder { get; init; }
|
||||
public IReadOnlyCollection<string> RequiredPermissions { get; init; } = [];
|
||||
public IReadOnlyCollection<string> MetaPermissions { get; init; } = [];
|
||||
public IReadOnlyCollection<string> MetaRoles { get; init; } = [];
|
||||
public IReadOnlyCollection<MenuAuthItemDto> AuthList { get; init; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user