From 59833ddbf47ed028462e1b089b46bf7c6f7518e3 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期二, 05 八月 2025 18:31:38 +0800 Subject: [PATCH] feat:字典开发 --- FlexJobApi.Core/Models/Main/Dictionaries/Queries/GetDictionaryDatasQuery.cs | 79 +++++++++++++++++++++++++++++++++++---- 1 files changed, 71 insertions(+), 8 deletions(-) diff --git a/FlexJobApi.Core/Models/Main/Dictionaries/Queries/GetDictionaryDatasQuery.cs b/FlexJobApi.Core/Models/Main/Dictionaries/Queries/GetDictionaryDatasQuery.cs index 583155d..0f82192 100644 --- a/FlexJobApi.Core/Models/Main/Dictionaries/Queries/GetDictionaryDatasQuery.cs +++ b/FlexJobApi.Core/Models/Main/Dictionaries/Queries/GetDictionaryDatasQuery.cs @@ -1,6 +1,7 @@ 锘縰sing MediatR; using System; using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -10,16 +11,18 @@ /// <summary> /// 鑾峰彇瀛楀吀鏁版嵁鍒嗛〉鍒楄〃 /// </summary> - public class GetDictionaryDatasQuery : PagedListQuery<GetDictionaryDatasQueryResult, GetDictionaryDatasQueryResultItem> , IRequest<GetDictionaryDatasQueryResult> + [Resource([EnumResourceController.Dictionary])] + public class GetDictionaryDatasQuery : PagedListQuery<PagedListQueryResult<GetDictionaryDatasQueryResultItem>, GetDictionaryDatasQueryResultItem> , IRequest<PagedListQueryResult<GetDictionaryDatasQueryResultItem>> { - } + /// <summary> + /// 绫诲埆Id + /// </summary> + public Guid CategoryId { get; set; } - /// <summary> - /// 鑾峰彇瀛楀吀鏁版嵁鍒嗛〉鍒楄〃-缁撴灉 - /// </summary> - public class GetDictionaryDatasQueryResult : PagedListQueryResult<GetDictionaryDatasQueryResultItem> - { - + /// <summary> + /// 鍏抽敭瀛� + /// </summary> + public string Keywords { get; set; } } /// <summary> @@ -27,6 +30,66 @@ /// </summary> public class GetDictionaryDatasQueryResultItem { + /// <summary> + /// Id + /// </summary> + public Guid Id { get; set; } + /// <summary> + /// 绫诲埆Id + /// </summary> + public Guid CategoryId { get; set; } + + /// <summary> + /// 涓婄骇Id + /// </summary> + public Guid? ParentId { get; set; } + + /// <summary> + /// 缂栧彿 + /// </summary> + [MaxLength(128)] + public string Code { get; set; } + + /// <summary> + /// 鏄剧ず鍐呭 + /// </summary> + [Required] + public string Content { get; set; } + + /// <summary> + /// 瀛楁1 + /// </summary> + public string Field1 { get; set; } + + /// <summary> + /// 瀛楁2 + /// </summary> + public string Field2 { get; set; } + + /// <summary> + /// 瀛楁3 + /// </summary> + public string Field3 { get; set; } + + /// <summary> + /// 瀛楁4 + /// </summary> + public string Field4 { get; set; } + + /// <summary> + /// 瀛楁5 + /// </summary> + public string Field5 { get; set; } + + /// <summary> + /// 鎺掑簭 + /// </summary> + public int Sort { get; set; } + + /// <summary> + /// 鏄惁绂佺敤 + /// </summary> + public bool IsDisabled { get; set; } } } -- Gitblit v1.9.1