package com.seer.teach.pay.admin.withdrawal.controller.response;

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

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

/**
 * 收益使用记录响应类
 */
@Data
@Schema(description = "收益使用记录响应参数")
public class AdminPayMerchantRevenueUsageResp {
    @Schema(description = "ID")
    private Long id;
    
    @Schema(description = "关联的收益流水ID")
    private Long revenueDetailId;
    
    @Schema(description = "提现申请单ID")
    private String withdrawalApplyId;
    
    @Schema(description = "本次使用的收益金额")
    private BigDecimal usedAmount;
    
    @Schema(description = "使用前可用余额（快照）")
    private BigDecimal availableAmountBefore;
    
    @Schema(description = "使用后可用余额（快照）")
    private BigDecimal availableAmountAfter;
    
    @Schema(description = "状态：PENDING-待处理, SUCCESS-成功, FAILED-失败, CANCELLED-取消")
    private String status;
    
    @Schema(description = "备注")
    private String remark;
    
    @Schema(description = "删除标识")
    private Integer deleted;
    
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    
    @Schema(description = "创建人")
    private String createBy;
    
    @Schema(description = "更新人")
    private String updateBy;
    
    @Schema(description = "租户ID")
    private String tenantId;
    
    @Schema(description = "收益明细列表")
    private AdminPayMerchantRevenueDetailResp item;
}