package com.hotwj.platform.pay.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.hotwj.platform.pay.domain.PayOrderExtension;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 支付订单
 * 视图对象 pay_order_extension
 *
 * @author shihongwei
 * @date 2026-05-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PayOrderExtension.class)
public class PayOrderExtensionVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 支付订单编号
     */
    @ExcelProperty(value = "支付订单编号")
    private Long id;

    /**
     * 支付订单号
     */
    @ExcelProperty(value = "支付订单号")
    private String no;

    /**
     * 支付订单编号
     */
    @ExcelProperty(value = "支付订单编号")
    private Long orderId;

    /**
     * 渠道编号
     */
    @ExcelProperty(value = "渠道编号")
    private Long channelId;

    /**
     * 渠道编码
     */
    @ExcelProperty(value = "渠道编码")
    private String channelCode;

    /**
     * 用户 IP
     */
    @ExcelProperty(value = "用户 IP")
    private String userIp;

    /**
     * 支付状态
     */
    @ExcelProperty(value = "支付状态")
    private Long status;

    /**
     * 支付渠道的额外参数
     */
    @ExcelProperty(value = "支付渠道的额外参数")
    private String channelExtras;

    /**
     * 渠道调用报错时，错误码
     */
    @ExcelProperty(value = "渠道调用报错时，错误码")
    private String channelErrorCode;

    /**
     * 渠道调用报错时，错误信息
     */
    @ExcelProperty(value = "渠道调用报错时，错误信息")
    private String channelErrorMsg;

    /**
     * 支付渠道异步通知的内容
     */
    @ExcelProperty(value = "支付渠道异步通知的内容")
    private String channelNotifyData;

    /**
     * 创建者姓名
     */
    @ExcelProperty(value = "创建者姓名")
    private String createByName;

    /**
     * 更新者姓名
     */
    @ExcelProperty(value = "更新者姓名")
    private String updateByName;

    /**
     * 0=正常, 1=已删除
     */
    @ExcelProperty(value = "0=正常, 1=已删除")
    private Long isDeleted;


}
