OrderDTO.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. package com.izouma.nineth.dto;
  2. import com.alibaba.excel.annotation.ExcelProperty;
  3. import com.izouma.nineth.annotations.Searchable;
  4. import lombok.Data;
  5. import javax.persistence.Column;
  6. import javax.persistence.EnumType;
  7. import javax.persistence.Enumerated;
  8. import java.math.BigDecimal;
  9. import java.math.BigInteger;
  10. import java.time.LocalDateTime;
  11. @Data
  12. public class OrderDTO {
  13. @ExcelProperty("用户ID")
  14. private Long userId;
  15. @ExcelProperty("藏品ID")
  16. private Long collectionId;
  17. @ExcelProperty("数量")
  18. private int qty;
  19. @ExcelProperty("名称")
  20. private String name;
  21. @ExcelProperty("分类")
  22. private String category;
  23. @ExcelProperty("是否可转售")
  24. private boolean canResale;
  25. @ExcelProperty("版税比例")
  26. private int royalties;
  27. @ExcelProperty("手续费比例")
  28. private int serviceCharge;
  29. @ExcelProperty("类型")
  30. @Enumerated(EnumType.STRING)
  31. private String type;
  32. @ExcelProperty("铸造者")
  33. private String minter;
  34. @ExcelProperty("铸造者ID")
  35. private Long minterId;
  36. @ExcelProperty("价格")
  37. @Column(precision = 10, scale = 2)
  38. private BigDecimal price;
  39. @ExcelProperty("gas费")
  40. @Column(precision = 10, scale = 2)
  41. private BigDecimal gasPrice;
  42. @ExcelProperty("总价")
  43. @Column(precision = 10, scale = 2)
  44. private BigDecimal totalPrice;
  45. @ExcelProperty("状态")
  46. @Enumerated(EnumType.STRING)
  47. private String status;
  48. @ExcelProperty("支付方式")
  49. private String payMethod;
  50. @ExcelProperty("交易ID")
  51. @Searchable
  52. private String transactionId;
  53. @ExcelProperty("支付时间")
  54. private LocalDateTime payTime;
  55. @ExcelProperty("取消时间")
  56. private LocalDateTime cancelTime;
  57. @ExcelProperty("交易hash")
  58. private String txHash;
  59. @ExcelProperty("消耗gas")
  60. private BigInteger gasUsed;
  61. @ExcelProperty("区块高度")
  62. private BigInteger blockNumber;
  63. @ExcelProperty("收货人")
  64. private String contactName;
  65. @ExcelProperty("收货电话")
  66. private String contactPhone;
  67. @ExcelProperty("收货地址")
  68. private String address;
  69. }