namespace Model.Dto.System { /// /// 数据字典分类 DTO /// public class DictTypeDto { public string Id { get; set; } public string Code { get; set; } public string Name { get; set; } public byte Status { get; set; } public int Sort { get; set; } public string? Remark { get; set; } public DateTime? CreateTime { get; set; } /// 该分类下的字典项数量(列表展示用,由 Service 填充) public int ItemCount { get; set; } } /// /// 数据字典项 DTO /// public class DictItemDto { public string Id { get; set; } public string TypeId { get; set; } public string Code { get; set; } public string Name { get; set; } public int Sort { get; set; } public byte Status { get; set; } public byte IsDefault { get; set; } public string? Remark { get; set; } public DateTime? CreateTime { get; set; } } /// /// 字典项下拉选项(业务侧通过 typeCode 查询用:仅返回编码+文本+是否默认) /// public class DictOptionDto { public string Code { get; set; } public string Name { get; set; } public bool IsDefault { get; set; } } }