| | |
| | | using MediatR; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel.DataAnnotations; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | |
| | | /// <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> |
| | |
| | | /// </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; } |
| | | } |
| | | } |