feat:新增自定义字典功能

This commit is contained in:
不做码农
2022-09-16 08:20:09 +08:00
parent 698409d541
commit a5a3b2d19d
9 changed files with 70 additions and 8 deletions

View File

@@ -0,0 +1,28 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.System.Dto
{
public class SysDictTypeDto
{
public long DictId { get; set; }
/// <summary>
/// 字典名称
/// </summary>
public string DictName { get; set; }
/// <summary>
/// 字典类型
/// </summary>
[Required(ErrorMessage = "字典类型不能为空")]
[RegularExpression(pattern: "^[a-z][a-z0-9_]*$", ErrorMessage = ",线")]
public string DictType { get; set; }
public string Status { get; set; }
/// <summary>
/// 系统内置 Y是 N否
/// </summary>
public string Type { get; set; }
/// <summary>
/// 自定义sql
/// </summary>
public string CustomSql { get; set; }
}
}