Files
Atomx/Atomx.Admin/Atomx.Admin.Client/Models/ProductStockAttributeModel.cs
2025-12-02 13:10:10 +08:00

76 lines
2.0 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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毫克mg2克g,3千克kg,4吨t5磅lb6盎司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; }
}
}