package com.ema.common.aspect.logger;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value = "LoggerVo对象")
public class LoggerVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志类型")
    private String type;
    @ApiModelProperty(value = "模块名称")
    private String module;
    @ApiModelProperty("日志标题")
    private String title;
    @ApiModelProperty(value = "请求方法")
    private String method;
    @ApiModelProperty(value = "请求url")
    private String url;
    @ApiModelProperty(value = "请求参数")
    private String params;
    @ApiModelProperty(value = "执行状态：0-异常；1-成功")
    private String status;
    @ApiModelProperty(value = "操作时间")
    private Date operTime;
    @ApiModelProperty(value = "请求耗时:毫秒")
    private Long duration;
    @ApiModelProperty(value = "错误消息")
    private String errorMsg;

    @ApiModelProperty(value = "请求IP")
    private String ip;
    @ApiModelProperty(value = "请求地区")
    private String region;
    @ApiModelProperty(value = "浏览器")
    private String browser;
    @ApiModelProperty(value = "操作系统")
    private String os;

}
