完善系统参数配置和数据字典管理模块

This commit is contained in:
2026-09-18 17:22:56 +08:00
parent 6aca0297bb
commit 60fac00887
30 changed files with 2510 additions and 24 deletions
+44
View File
@@ -0,0 +1,44 @@
namespace Model.Dto.System
{
/// <summary>
/// 数据字典分类 DTO
/// </summary>
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; }
/// <summary>该分类下的字典项数量(列表展示用,由 Service 填充)</summary>
public int ItemCount { get; set; }
}
/// <summary>
/// 数据字典项 DTO
/// </summary>
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; }
}
/// <summary>
/// 字典项下拉选项(业务侧通过 typeCode 查询用:仅返回编码+文本+是否默认)
/// </summary>
public class DictOptionDto
{
public string Code { get; set; }
public string Name { get; set; }
public bool IsDefault { get; set; }
}
}