package com.seer.teach.pay.app.wallet.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Schema(description = "用户账户交易明细日志")
public class UserCoinAccountTradeLogResp {

    private Integer id;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "交易类型: 1-充值，2-微信退款, 3-兑换, 4-购买, 5-退货")
    private Integer tradeType;

    @Schema(description = "交易名称")
    private String tradeName;

    @Schema(description = "交易时间")
    private LocalDateTime tradeTime;

    @Schema(description = "关联业务ID（如课程ID、订单ID）")
    private Integer relatedId;

    @Schema(description = "交易前余额")
    private BigDecimal beforeBalance;

    @Schema(description = "交易金额")
    private BigDecimal tradeAmount;

    @Schema(description = "交易后余额")
    private BigDecimal afterBalance;

    @Schema(description = "备注信息")
    private String remark;
}
