using Mapster; using MediatR; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FlexJobApi.Core { /// /// 获取数据字典分页列表数据 /// [Resource([EnumResourceController.FlexJobServerDictionary])] public class GetDictionaryDatasQuery : PagedListQuery, GetDictionaryDatasQueryResultItem> { /// /// 类别Id(Id/编号二选一) /// public Guid? CategoryId { get; set; } /// /// 类别编号(Id/编号二选一) /// public string CategoryCode { get; set; } /// /// 上级Id /// public Guid? ParentId { get; set; } /// /// 关键字 /// public string Keywords { get; set; } } /// /// 获取数据字典分页列表数据-结果-行数据 /// public class GetDictionaryDatasQueryResultItem { /// /// Id /// public Guid Id { get; set; } /// /// 类别Id /// public Guid CategoryId { get; set; } /// /// 类别编号 /// public string CategoryCode { get; set; } /// /// 类别名称 /// public string CategoryName { get; set; } /// /// 上级Id /// public Guid? ParentId { get; set; } /// /// 编号 /// [MaxLength(128)] public string Code { get; set; } /// /// 显示内容 /// [Required] public string Content { get; set; } /// /// 字段1 /// public string Field1 { get; set; } /// /// 字段2 /// public string Field2 { get; set; } /// /// 字段3 /// public string Field3 { get; set; } /// /// 字段4 /// public string Field4 { get; set; } /// /// 字段5 /// public string Field5 { get; set; } /// /// 排序 /// public int Sort { get; set; } /// /// 是否禁用 /// public bool IsDisabled { get; set; } } /// /// 获取数据字典分页列表数据-结果-行数据-类别 /// public class GetDictionaryDatasQueryResultItemCategory { /// /// 类别编号 /// public string Code { get; set; } /// /// 名称 /// public string Name { get; set; } } }