namespace Atomx.Admin.Client.Models
{
    public class ProductStockAttributeModel
    {
        /// <summary>
        /// 数据ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 属性ID
        /// </summary>
        public long AttributeId { get; set; }

        /// <summary>
        /// 控件的类型
        /// </summary>
        public int ControlType { get; set; }

        /// <summary>
        /// 必须填重量
        /// </summary>
        public bool WeightIsRequired { get; set; }

        /// <summary>
        /// 重量单位,1毫克mg，2克g,3千克kg,4吨t，5磅lb，6盎司oz
        /// </summary>
        public int WeightUnit { get; set; }

        /// <summary>
        /// 属性名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 是否拥有规格图片
        /// </summary>
        public bool Image { get; set; }

        /// <summary>
        /// 属性排序
        /// </summary>
        public int DisplayOrder { get; set; }

        /// <summary>
        /// 产品属性值
        /// </summary>
        public List<ProductAttributeValueModel> ProductAttributeValues { get; set; } = new List<ProductAttributeValueModel>();

        /// <summary>
        /// 新产品属性值
        /// </summary>
        public ProductAttributeValueModel AttributeValue { get; set; } = new ProductAttributeValueModel();

        /// <summary>
        /// 
        /// </summary>
        public string SelectOption { get; set; } = string.Empty;

        /// <summary>
        /// 输入的新属性值
        /// </summary>
        public string InputText { get; set; } = string.Empty;

        /// <summary>
        /// 是否编辑状态
        /// </summary>
        public bool AddAttribute { get; set; }

        /// <summary>
        /// 是否是必须的属性
        /// </summary>
        public bool IsRequired { get; set; }
    }
}
