package com.wzj.soopin.order.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.dromara.common.core.domain.model.BaseAudit;
import org.dromara.common.excel.annotation.Excel;

import java.math.BigDecimal;

/**
 * 微信订单表对象 oms_wechat_payment_history
 *
 * @author zcc
 */
@Schema(description = "微信订单表对象")
@Data
@TableName("oms_wechat_payment_history")
public class WechatPaymentHistory extends BaseAudit {
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "payment_id")
    @Excel(name = "payment_id")
    private String paymentId;

    @Schema(description = "用户 ID")
    @Excel(name = "用户 ID")
    private Long memberId;

    @Schema(description = "OPENID")
    @Excel(name = "OPENID")
    private String openid;

    @Schema(description = "真实姓名，提现需要")
    @Excel(name = "真实姓名，提现需要")
    private String realName;

    @Schema(description = "标题|商品名称")
    @Excel(name = "标题|商品名称")
    private String title;

    @Schema(description = "订单号 支付时是payId 其他为orderId")
    @Excel(name = "订单号 支付时是payId 其他为orderId")
    private Long orderId;

    @Schema(description = "金额，单位分")
    @Excel(name = "金额，单位分")
    private BigDecimal money;

    @Schema(description = "交易类型（1为支付  2为提现  3为退款）")
    @Excel(name = "交易类型", readConverterExp = "1=为支付,2=为提现,3=为退款")
    private Integer opType;

    @Schema(description = "状态（0：未完成交易   1：完成关键交易）")
    @Excel(name = "状态", readConverterExp = "0=：未完成交易,1=：完成关键交易")
    private Integer paymentStatus;

    @Schema(description = "备注")
    @Excel(name = "备注")
    private String remark;

    @Schema(description = "附加数据")
    @Excel(name = "附加数据")
    private String attach;

    @Schema(description = "响应内容")
    @Excel(name = "响应内容")
    private String responseBody;
}
