2024-08-27 22:04:07 +08:00
|
|
|
|
namespace Admin.NET.Core.Service;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 验证规则选项
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class VerifyRuleItem
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 编码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long Key { get; set; }
|
2024-08-28 11:37:37 +08:00
|
|
|
|
|
2024-08-27 22:04:07 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 验证类型
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Type { get; set; }
|
2024-08-28 11:37:37 +08:00
|
|
|
|
|
2024-08-27 22:04:07 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 验证错误消息
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Message { get; set; }
|
2024-08-28 11:37:37 +08:00
|
|
|
|
|
2024-08-27 22:04:07 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 最小值
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Min { get; set; }
|
2024-08-28 11:37:37 +08:00
|
|
|
|
|
2024-08-27 22:04:07 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 最大值
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Max { get; set; }
|
2024-08-28 11:37:37 +08:00
|
|
|
|
|
2024-08-27 22:04:07 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 正则表达式
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Pattern { get; set; }
|
2024-08-28 11:37:37 +08:00
|
|
|
|
|
2024-08-27 22:04:07 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 数据类型(搭配正则)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string DataType { get; set; }
|
|
|
|
|
|
}
|