package com.cf.imes.module.system.controller.admin.funds.purchase.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.cf.imes.framework.excel.core.annotations.EnumFormat;
import com.cf.imes.framework.excel.core.convert.EnumConvert;
import com.cf.imes.module.system.enums.pay.TradeTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * @author Gqr
 * @since 2025/9/11 18:26
 */
@Schema(description = "管理后台 - 销售明细 Resp VO")
@Data
public class SalesDetailRespVO {

    @Schema(description = "订单号")
    @ExcelProperty("excel.export.head.sales.detail.id")
    private Long id;

    @Schema(description = "交易类型,0充值 1软件购买")
    @ExcelProperty(value = "excel.export.head.sales.detail.trade.type", converter = EnumConvert.class)
    @EnumFormat(value = TradeTypeEnum.class)
    private Integer tradeType;

    @Schema(description = "产品金额")
    @ExcelProperty("excel.export.head.sales.detail.total.amount")
    private BigDecimal totalAmount;

    @Schema(description = "扫码支付")
    @ExcelProperty("excel.export.head.sales.detail.recharge.spent")
    private BigDecimal rechargeSpent;

    @Schema(description = "操作人")
    @ExcelProperty("excel.export.head.sales.detail.creator")
    private String creator;

    @Schema(description = "组织名称")
    @ExcelProperty("excel.export.head.sales.detail.orgName")
    private String organName;

    @Schema(description = "支付方式")
    @ExcelProperty("excel.export.head.sales.detail.payMethod")
    private String paymentMethod;

    @Schema(description = "交易时间")
    @ExcelProperty("excel.export.head.sales.detail.createTime")
    private LocalDateTime createTime;
}
