sunpengfei
2025-08-06 b2379f0a27da604de31869137f892629ce99a1da
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;
@@ -15,9 +16,14 @@
    public class GetDictionaryDatasQuery : PagedListQuery<PagedListQueryResult<GetDictionaryDatasQueryResultItem>, GetDictionaryDatasQueryResultItem>
    {
        /// <summary>
        /// 类别Id
        /// 类别Id(Id/编号二选一)
        /// </summary>
        public Guid? CategoryId { get; set; }
        /// <summary>
        /// 类别编号(Id/编号二选一)
        /// </summary>
        public string CategoryCode { get; set; }
        /// <summary>
        /// 关键字
@@ -39,6 +45,23 @@
        /// 类别Id
        /// </summary>
        public Guid CategoryId { get; set; }
        /// <summary>
        /// 类别编号
        /// </summary>
        [AdaptIgnore]
        public string CategoryCode => Category?.Code;
        /// <summary>
        /// 类别名称
        /// </summary>
        [AdaptIgnore]
        public string CategoryName => Category?.Name;
        /// <summary>
        /// 类别
        /// </summary>
        public GetDictionaryDatasQueryResultItemCategory Category { get; set; }
        /// <summary>
        /// 上级Id
@@ -92,4 +115,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; }
    }
}