package com.wms_main.excel.easypoi.excelTemplate;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 发送日志模版
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ApiSendLogExcelTemplate {
    /**
     * id
     */
    @Excel(name = "log_id")
    private String logId;
    /**
     * url
     */
    @Excel(name = "url")
    private String url;
    /**
     * 超时时长
     */
    @Excel(name = "timeout")
    private Integer timeout;
    /**
     * 请求方式
     */
    @Excel(name = "method")
    private String method;
    /**
     * 请求头
     */
    @Excel(name = "content_type")
    private String contentType;
    /**
     * 数据
     */
    @Excel(name = "data")
    private String data;
    /**
     * token
     */
    @Excel(name = "token")
    private String token;
    /**
     * 请求是否成功
     */
    @Excel(name = "success")
    private String success;
    /**
     * 响应码
     */
    @Excel(name = "response_code")
    private int responseCode;
    /**
     * 请求信息
     */
    @Excel(name = "request_message")
    private String requestMessage;
    /**
     * 响应信息
     */
    @Excel(name = "response_message")
    private String responseMessage;
    /**
     * 请求时间
     */
    @Excel(name = "request_time", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime requestTime;
    /**
     * 响应时间
     */
    @Excel(name = "response_time")
    private LocalDateTime responseTime;
    /**
     * 请求地址
     */
    @Excel(name = "request_url")
    private String requestUrl;
    /**
     * 请求耗时
     */
    @Excel(name = "use_time")
    private long useTime;
    /**
     * 异常
     */
    @Excel(name = "exception_message")
    private String exceptionMessage;
    /**
     * 记录时间
     */
    @Excel(name = "log_time")
    private LocalDateTime logTime;
}
