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 ApiReceiveLogExcelTemplate {
    /**
     * 日志Id
     */
    @Excel(name = "log_id")
    private String logId;
    /**
     * 请求方式
     */
    @Excel(name = "method")
    private String method;
    /**
     * 请求地址
     */
    @Excel(name = "uri")
    private String uri;
    /**
     * 客户端主机
     */
    @Excel(name = "remote_host")
    private String remoteHost;
    /**
     * 客户端地址
     */
    @Excel(name = "remote_addr")
    private String remoteAddr;
    /**
     * 请求数据
     */
    @Excel(name = "request_content")
    private String requestContent;
    /**
     * 响应状态
     */
    @Excel(name = "status")
    private String status;
    /**
     * 响应数据
     */
    @Excel(name = "response_content")
    private String responseContent;
    /**
     * 日志记录时间
     */
    @Excel(name = "log_time", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime logTime;
}
