ProductDto.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. using ZR.Mall.Enum;
  2. using ZR.Model.System;
  3. namespace ZR.Mall.Model.Dto
  4. {
  5. /// <summary>
  6. /// 商品管理查询对象
  7. /// </summary>
  8. public class ShoppingProductQueryDto : PagerInfo
  9. {
  10. public long? ProductId { get; set; }
  11. public string ProductName { get; set; }
  12. public string ProductCode { get; set; }
  13. public SaleStatus? SaleStatus { get; set; }
  14. public int? CategoryId { get; set; }
  15. public int? BrandId { get; set; }
  16. public DateTime? BeginAddTime { get; set; }
  17. public DateTime? EndAddTime { get; set; }
  18. }
  19. /// <summary>
  20. /// 商品管理输入输出对象
  21. /// </summary>
  22. public class ProductDto : SysBase
  23. {
  24. [ExcelColumn(Name = "商品ID")]
  25. public long ProductId { get; set; }
  26. [Required(ErrorMessage = "商品名不能为空")]
  27. [ExcelColumn(Name = "商品名")]
  28. public string ProductName { get; set; }
  29. [ExcelColumn(Name = "介绍")]
  30. public string Introduce { get; set; }
  31. [ExcelColumn(Ignore = true)]
  32. public int? CategoryId { get; set; }
  33. [ExcelColumn(Name = "商品分类")]
  34. public string CategoryName { get; set; }
  35. [ExcelColumn(Ignore = true)]
  36. public long? BrandId { get; set; }
  37. [ExcelColumn(Name = "品牌")]
  38. public string BrandName { get; set; }
  39. [ExcelColumn(Name = "sku最低价格")]
  40. public decimal Price { get; set; }
  41. [ExcelColumn(Name = "sku最高价格")]
  42. public decimal MaxPrice { get; set; }
  43. [ExcelColumn(Name = "封面地址")]
  44. public string ImageUrls { get; set; }
  45. [ExcelColumn(Name = "商品主题")]
  46. public string MainImage { get; set; }
  47. [ExcelColumn(Name = "视频介绍")]
  48. public string VideoUrl { get; set; }
  49. [ExcelColumn(Name = "排序ID")]
  50. public int SortId { get; set; }
  51. [ExcelColumn(Name = "售卖状态", Ignore = true)]
  52. public SaleStatus SaleStatus { get; set; }
  53. [ExcelColumn(Name = "详情", Ignore = true)]
  54. public string DetailsHtml { get; set; }
  55. [ExcelColumn(Name = "总库存")]
  56. public int Stock { get; set; }
  57. [ExcelColumn(Name = "总销量")]
  58. public int TotalSalesVolume { get; set; }
  59. [ExcelColumn(Name = "规格")]
  60. public string SpecSummary { get; set; }
  61. [ExcelColumn(Name = "添加时间", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
  62. public DateTime? AddTime { get; set; }
  63. [ExcelColumn(Name = "是否删除")]
  64. public int IsDelete { get; set; }
  65. [ExcelColumn(Name = "限购")]
  66. public PurchaseLimit PurchaseLimit { get; set; }
  67. [ExcelColumn(Name = "规格类型")]
  68. public SpecType SpecType { get; set; } = SpecType.Multiple;
  69. [ExcelColumn(Ignore = true)]
  70. public List<SkusDto> Skus { get; set; }
  71. [ExcelColumn(Ignore = true)]
  72. public Category Category { get; set; }
  73. [ExcelColumn(Ignore = true)]
  74. public List<ProductSpecDto> Spec { get; set; }
  75. [ExcelColumn(Ignore = true)]
  76. public Brand Brand { get; set; }
  77. }
  78. }