using System; using System.Xml.Serialization; namespace Top.Api.Domain { /// /// ProductImg Data Structure. /// [Serializable] public class ProductImg : TopObject { /// /// 添加时间.格式:yyyy-mm-dd hh:mm:ss /// [XmlElement("created")] public string Created { get; set; } /// /// 产品图片ID /// [XmlElement("id")] public long Id { get; set; } /// /// 修改时间.格式:yyyy-mm-dd hh:mm:ss /// [XmlElement("modified")] public string Modified { get; set; } /// /// 图片序号。产品里的图片展示顺序,数据越小越靠前。要求是正整数。 /// [XmlElement("position")] public long Position { get; set; } /// /// 图片所属产品的ID /// [XmlElement("product_id")] public long ProductId { get; set; } /// /// 图片地址.(绝对地址,格式:http://host/image_path) /// [XmlElement("url")] public string Url { get; set; } } }