using System.ComponentModel;

namespace RBMESAPI.Models.Cloud
{
    /// <summary>
    /// 查询条件JSON格式数据，此类使用起来不方便
    /// 对类似FDOCUMENTSTATUS这样的字段判断总是出错，可能是没掌握正确的方法吧...
    /// </summary>
    public class Cloud_FilterString
    {
        /// <summary>
        /// 左括号
        /// </summary>
        [DisplayName("左括号")]
        public string Left { get; set; } = string.Empty;
        /// <summary>
        /// 字段名
        /// </summary>
        [DisplayName("字段名")]
        public string FieldName { get; set; } = string.Empty;
        /// <summary>
        /// 比较运算符，如　大于">"、小于"<"、等于"="、包含"like"、左包含"llike"、右包含"rlike"
        /// </summary>
        [DisplayName("比较运算符")]
        public string Compare { get; set; } = string.Empty;
        /// <summary>
        /// 比较值
        /// </summary>
        [DisplayName("比较值")]
        public string Value { get; set; } = string.Empty;
        /// <summary>
        /// 右括号
        /// </summary>
        [DisplayName("右括号")]
        public string Right { get; set; } = string.Empty;
        /// <summary>
        /// 逻辑运算符，如 "and"、"or"
        /// </summary>
        [DisplayName("逻辑运算符")]
        public string Logic { get; set; } = string.Empty;
    }
}
