sunpengfei
2025-08-01 4eb03794f7b0f315c2f4ae8d84e12b7c3ca9a407
FlexJobApi.Core/Models/User/Menus/Queries/MenuAllQuery.cs
@@ -1,4 +1,5 @@
using System;
using MediatR;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
@@ -10,7 +11,7 @@
    /// <summary>
    /// 查询所有菜单
    /// </summary>
    public class MenuAllQuery
    public class MenuAllQuery : IRequest<MenuAllCallback>
    {
    }
@@ -32,6 +33,11 @@
    /// </summary>
    public class MenuAllCallbackItem
    {
        public MenuAllCallbackItem()
        {
            Childrens = [];
        }
        /// <summary>
        /// Id
        /// </summary>
@@ -43,6 +49,11 @@
        public Guid? ParentId { get; set; }
        /// <summary>
        /// 下级
        /// </summary>
        public List<MenuAllCallbackItem> Childrens { get; set; }
        /// <summary>
        /// 菜单路径
        /// </summary>
        public string Path { get; set; }