|
|
@@ -0,0 +1,46 @@
|
|
|
+package com.zhongshu.card.client.model.payment;
|
|
|
+
|
|
|
+import com.zhongshu.card.client.model.base.SuperModel;
|
|
|
+import com.zhongshu.card.client.utils.type.RechargeType;
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author TRX
|
|
|
+ * @date 2024/6/28
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@AllArgsConstructor
|
|
|
+@NoArgsConstructor
|
|
|
+public class WalletRechargeModel extends SuperModel {
|
|
|
+ @Schema(description = "关联钱包信息")
|
|
|
+ private WalletModel wallet;
|
|
|
+
|
|
|
+ @Schema(description = "充值类型:")
|
|
|
+ private RechargeType rechargeType;
|
|
|
+
|
|
|
+ private String rechargeTypeStr;
|
|
|
+
|
|
|
+ public String getRechargeTypeStr() {
|
|
|
+ if (wallet != null) {
|
|
|
+ return rechargeType.getRemark();
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+
|
|
|
+ @Schema(description = "充值金额")
|
|
|
+ private BigDecimal amount;
|
|
|
+
|
|
|
+ @Schema(description = "充值前的金额")
|
|
|
+ private BigDecimal preAmount;
|
|
|
+
|
|
|
+ @Schema(description = "充值后的金额")
|
|
|
+ private BigDecimal afterAmount;
|
|
|
+
|
|
|
+ @Schema(description = "关联的退款订单数据ID")
|
|
|
+ private String aboutDataId;
|
|
|
+}
|