sunpengfei
2025-08-01 9fd157a63dfbb8ee9f32fff7540c97eb4a3d3cce
FlexJobApi.Core/Models/User/Menus/Queries/MenuAllQuery.cs
@@ -1,4 +1,5 @@
using MediatR;
using Mapster;
using MediatR;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
@@ -11,31 +12,44 @@
    /// <summary>
    /// 查询所有菜单
    /// </summary>
    public class MenuAllQuery : IRequest<MenuAllCallback>
    public class MenuListQuery : IRequest<MenuListCallback>
    {
        public MenuListQuery()
        {
        }
        /// <summary>
        /// 上级Id
        /// </summary>
        public Guid? ParentId { get; set; }
        /// <summary>
        /// 关键字
        /// </summary>
        public string Keywords { get; set; }
    }
    /// <summary>
    /// 查询所有菜单-结果
    /// </summary>
    public class MenuAllCallback
    public class MenuListCallback
    {
        public MenuAllCallback()
        public MenuListCallback()
        {
            Items = [];
        }
        public List<MenuAllCallbackItem> Items { get; set; }
        public List<MenuListCallbackItem> Items { get; set; }
    }
    /// <summary>
    /// 查询所有菜单-结果-项
    /// </summary>
    public class MenuAllCallbackItem
    public class MenuListCallbackItem
    {
        public MenuAllCallbackItem()
        public MenuListCallbackItem()
        {
            Childrens = [];
        }
        /// <summary>
@@ -47,11 +61,6 @@
        /// 上级Id
        /// </summary>
        public Guid? ParentId { get; set; }
        /// <summary>
        /// 下级
        /// </summary>
        public List<MenuAllCallbackItem> Childrens { get; set; }
        /// <summary>
        /// 菜单路径