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

import com.yc.ship.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.yc.ship.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;


@Schema(description = "管理后台 - 发票记录分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class InvoiceLogPageReqVO extends PageParam {

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

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

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

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

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

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

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}