package com.wms_main.model.pojo.log;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RequestLog {
    /**
     * 请求方式
     */
    private String method;
    /**
     * 请求地址
     */
    private String uri;
    /**
     * 客户端主机
     */
    private String remoteHost;
    /**
     * 客户端地址
     */
    private String remoteAddr;
    /**
     * 请求数据
     */
    private String requestContent;
    /**
     * 响应状态
     */
    private String status;
    /**
     * 响应数据
     */
    private String responseContent;

    public String toString() {
        return "\n请求方式：" + method
                + "\n请求地址：" + uri
                + "\n客户端主机：" + remoteHost
                + "\n客户端地址：" + remoteAddr
                + "\n请求数据：" + requestContent
                + "\n响应状态：" + status
                + "\n响应数据：" + responseContent;
    }
}
