namespace Atomx.Admin.Client.Models { public class ProductStockAttributeModel { /// /// 数据ID /// public long Id { get; set; } /// /// 属性ID /// public long AttributeId { get; set; } /// /// 控件的类型 /// public int ControlType { get; set; } /// /// 必须填重量 /// public bool WeightIsRequired { get; set; } /// /// 重量单位,1毫克mg,2克g,3千克kg,4吨t,5磅lb,6盎司oz /// public int WeightUnit { get; set; } /// /// 属性名称 /// public string Name { get; set; } = string.Empty; /// /// 是否拥有规格图片 /// public bool Image { get; set; } /// /// 属性排序 /// public int DisplayOrder { get; set; } /// /// 产品属性值 /// public List ProductAttributeValues { get; set; } = new List(); /// /// 新产品属性值 /// public ProductAttributeValueModel AttributeValue { get; set; } = new ProductAttributeValueModel(); /// /// /// public string SelectOption { get; set; } = string.Empty; /// /// 输入的新属性值 /// public string InputText { get; set; } = string.Empty; /// /// 是否编辑状态 /// public bool AddAttribute { get; set; } /// /// 是否是必须的属性 /// public bool IsRequired { get; set; } } }