package com.yc.ship.module.trade.controller.admin.invoicelog.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 发票记录 Response VO")
@Data
@ExcelIgnoreUnannotated
public class InvoiceLogRespVO {

    @Schema(description = "发票请求表ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6117")
    @ExcelProperty("发票请求表ID")
    private Long id;

    @Schema(description = "发票ID", example = "28778")
    @ExcelProperty("发票ID")
    private Long invoiceId;

    @Schema(description = "开票url", example = "https://www.iocoder.cn")
    @ExcelProperty("开票url")
    private String url;

    @Schema(description = "开票方法", example = "1")
    @ExcelProperty("开票方法")
    private String type;

    @Schema(description = "日志状态 0.失败 1.成功")
    @ExcelProperty("日志状态 0.失败 1.成功")
    private Integer state;

    @Schema(description = "请求header信息")
    @ExcelProperty("请求header信息")
    private String params;

    @Schema(description = "日志请求内容")
    @ExcelProperty("日志请求内容")
    private String reqContent;

    @Schema(description = "日志返回内容")
    @ExcelProperty("日志返回内容")
    private String resContent;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}