sunpengfei
2025-08-07 75463592b40199fbafb6930060ef679a05b5b714
FlexJobApi.Core/Models/Main/Dictionaries/Queries/GetDictionaryDatasQuery.cs
@@ -1,4 +1,5 @@
using MediatR;
using Mapster;
using MediatR;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
@@ -9,15 +10,25 @@
namespace FlexJobApi.Core
{
    /// <summary>
    /// 获取字典数据分页列表
    /// 获取数据字典分页列表数据
    /// </summary>
    [Resource([EnumResourceController.Dictionary])]
    public class GetDictionaryDatasQuery : PagedListQuery<PagedListQueryResult<GetDictionaryDatasQueryResultItem>, GetDictionaryDatasQueryResultItem> , IRequest<PagedListQueryResult<GetDictionaryDatasQueryResultItem>>
    public class GetDictionaryDatasQuery : PagedListQuery<PagedListQueryResult<GetDictionaryDatasQueryResultItem>, GetDictionaryDatasQueryResultItem>
    {
        /// <summary>
        /// 类别Id
        /// 类别Id(Id/编号二选一)
        /// </summary>
        public Guid CategoryId { get; set; }
        public Guid? CategoryId { get; set; }
        /// <summary>
        /// 类别编号(Id/编号二选一)
        /// </summary>
        public string CategoryCode { get; set; }
        /// <summary>
        /// 上级Id
        /// </summary>
        public Guid? ParentId { get; set; }
        /// <summary>
        /// 关键字
@@ -26,7 +37,7 @@
    }
    /// <summary>
    /// 获取字典数据分页列表-结果-行数据
    /// 获取数据字典分页列表数据-结果-行数据
    /// </summary>
    public class GetDictionaryDatasQueryResultItem
    {
@@ -39,6 +50,16 @@
        /// 类别Id
        /// </summary>
        public Guid CategoryId { get; set; }
        /// <summary>
        /// 类别编号
        /// </summary>
        public string CategoryCode { get; set; }
        /// <summary>
        /// 类别名称
        /// </summary>
        public string CategoryName { get; set; }
        /// <summary>
        /// 上级Id
@@ -92,4 +113,20 @@
        /// </summary>
        public bool IsDisabled { get; set; }
    }
    /// <summary>
    /// 获取数据字典分页列表数据-结果-行数据-类别
    /// </summary>
    public class GetDictionaryDatasQueryResultItemCategory
    {
        /// <summary>
        /// 类别编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
    }
}