| | |
| | | using MediatR; |
| | | using Mapster; |
| | | using MediatR; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel.DataAnnotations; |
| | |
| | | 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> |
| | | /// 关键字 |
| | |
| | | /// 类别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 |
| | |
| | | /// </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; } |
| | | } |
| | | } |