CoinCurrencyHolding.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. package top.lvzhiqiang.entity;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import lombok.Data;
  4. import java.io.Serializable;
  5. import java.math.BigDecimal;
  6. import java.time.LocalDateTime;
  7. /**
  8. * coin当前持有
  9. *
  10. * @author lvzhiqiang
  11. * 2024/10/15 17:52
  12. */
  13. @Data
  14. public class CoinCurrencyHolding implements Serializable {
  15. /**
  16. * 主键
  17. */
  18. private Long id;
  19. /**
  20. * 名称
  21. */
  22. private String symbol;
  23. private String symbolStyle;
  24. /**
  25. * 入场价格
  26. */
  27. private String buyPrice;
  28. /**
  29. * 当前价格
  30. */
  31. private String currentPrice;
  32. private String currentPriceStyle;
  33. /**
  34. * 涨跌幅比例
  35. */
  36. private BigDecimal changePercentage;
  37. private String changePercentageStyle;
  38. /**
  39. * 入场数量
  40. */
  41. private String buyQuantity;
  42. /**
  43. * 当前数量
  44. */
  45. private String currentQuantity;
  46. /**
  47. * 入场总额
  48. */
  49. private BigDecimal buyAmount;
  50. /**
  51. * 当前总额
  52. */
  53. private BigDecimal currentAmount;
  54. /**
  55. * 所属平台
  56. */
  57. private String exchangeCategory;
  58. private Integer exchangeCategoryId;
  59. /**
  60. * coingecko id
  61. */
  62. private String coingeckoId;
  63. /**
  64. * 状态(1:正常,2:失效)
  65. */
  66. private Integer status;
  67. /**
  68. * 备注
  69. */
  70. private String remark;
  71. /**
  72. * 买入时间
  73. */
  74. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  75. private LocalDateTime buyTime;
  76. /**
  77. * 最后修改时间
  78. */
  79. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  80. private LocalDateTime modifyTime;
  81. /**
  82. * 删除标志(1:正常,2:已删除)
  83. */
  84. private Integer deleteFlag;
  85. }