From b4205c80b0fd6220632fa0ab7df4c75ba844afc4 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期四, 07 八月 2025 15:13:21 +0800 Subject: [PATCH] feat:字典开发 --- FlexJobApi.Core/Models/Main/Dictionaries/Queries/GetDictionaryDatasQuery.cs | 29 +++++++++++++++++++++++++---- 1 files changed, 25 insertions(+), 4 deletions(-) diff --git a/FlexJobApi.Core/Models/Main/Dictionaries/Queries/GetDictionaryDatasQuery.cs b/FlexJobApi.Core/Models/Main/Dictionaries/Queries/GetDictionaryDatasQuery.cs index 4006dc4..aa54be6 100644 --- a/FlexJobApi.Core/Models/Main/Dictionaries/Queries/GetDictionaryDatasQuery.cs +++ b/FlexJobApi.Core/Models/Main/Dictionaries/Queries/GetDictionaryDatasQuery.cs @@ -1,4 +1,5 @@ -锘縰sing MediatR; +锘縰sing Mapster; +using MediatR; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; @@ -15,9 +16,19 @@ public class GetDictionaryDatasQuery : PagedListQuery<PagedListQueryResult<GetDictionaryDatasQueryResultItem>, GetDictionaryDatasQueryResultItem> { /// <summary> - /// 绫诲埆Id + /// 绫诲埆Id锛圛d/缂栧彿浜岄�変竴锛� /// </summary> public Guid? CategoryId { get; set; } + + /// <summary> + /// 绫诲埆缂栧彿锛圛d/缂栧彿浜岄�変竴锛� + /// </summary> + public string CategoryCode { get; set; } + + /// <summary> + /// 涓婄骇Id + /// </summary> + public Guid? ParentId { get; set; } /// <summary> /// 鍏抽敭瀛� @@ -41,9 +52,14 @@ public Guid CategoryId { get; set; } /// <summary> - /// 绫诲埆 + /// 绫诲埆缂栧彿 /// </summary> - public GetDictionaryDatasQueryResultItemCategory Category { get; set; } + public string CategoryCode { get; set; } + + /// <summary> + /// 绫诲埆鍚嶇О + /// </summary> + public string CategoryName { get; set; } /// <summary> /// 涓婄骇Id @@ -104,6 +120,11 @@ public class GetDictionaryDatasQueryResultItemCategory { /// <summary> + /// 绫诲埆缂栧彿 + /// </summary> + public string Code { get; set; } + + /// <summary> /// 鍚嶇О /// </summary> public string Name { get; set; } -- Gitblit v1.9.1