You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.1 KiB
C#

namespace DS.Module.Core.Condition
{
4 months ago
public class ConditionContent
{
/// <summary>
/// 逻辑操作符
/// </summary>
4 months ago
public string LogicalOperator { get; set; } = "and";
/// <summary>
4 months ago
/// 条件
/// </summary>
4 months ago
public List<ConditionDetail> Conditions { get; set; } = [];
/// <summary>
/// 条件组
/// </summary>
4 months ago
public List<ConditionContent>? Groups { get; set; }
/// <summary>
/// 数据源名称
/// </summary>
public string? SourceName { get; set; }
}
public class ConditionDetail
{
/// <summary>
/// 字段
/// </summary>
public string Field { get; set; }
/// <summary>
/// 操作符
/// </summary>
public string Operator { get; set; }
/// <summary>
/// 值
/// </summary>
public string Value { get; set; }
/// <summary>
/// 值类型 string(默认)/bool/number/datetime
/// </summary>
public string? ValueType { get; set; }
}
}