ReqGoodsSkuInsert.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. package com.cyksj.model.manage.request;
  2. import lombok.Getter;
  3. import lombok.Setter;
  4. import javax.validation.constraints.NotNull;
  5. import java.math.BigDecimal;
  6. import java.util.List;
  7. /**
  8. * @author chan
  9. * @date 2022/9/27 5:28 PM
  10. */
  11. @Getter
  12. @Setter
  13. public class ReqGoodsSkuInsert {
  14. @NotNull(message = "请指定商品spu.")
  15. private Long goodsId;
  16. private List<ReqGoodsSkuSpec> specs;
  17. private List<Sku> skus;
  18. @Getter
  19. @Setter
  20. public static class Sku {
  21. /**
  22. * 商品规格 ids
  23. */
  24. private String specIds;
  25. /**
  26. * 副标题
  27. */
  28. private String subTitle;
  29. /**
  30. * 商品预览图
  31. */
  32. private String picture;
  33. /**
  34. * 规格说明信息
  35. */
  36. private String notifyText;
  37. private String tags;
  38. private BigDecimal price;
  39. /**
  40. * 数量
  41. */
  42. private Integer num;
  43. /**
  44. * 月份
  45. */
  46. private Integer months;
  47. /**
  48. * 状态
  49. */
  50. private Boolean status;
  51. }
  52. }