All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.healthy.common.log.access.support.AccessLog Maven / Gradle / Ivy

There is a newer version: 2.0.0-M1
Show newest version
package com.healthy.common.log.access.support;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 访问日志
 *
 * @author xm.z
 */
@Data
@Accessors(chain = true)
public class AccessLog implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 追踪ID
	 */
	private String traceId;

	/**
	 * 用户ID
	 */
	private Long userId;

	/**
	 * 用户名
	 */
	private String username;

	/**
	 * 访问IP地址
	 */
	private String ip;

	/**
	 * 用户代理
	 */
	private String userAgent;

	/**
	 * 请求URI
	 */
	private String uri;

	/**
	 * 请求映射地址
	 */
	private String matchingPattern;

	/**
	 * 操作方式
	 */
	private String method;

	/**
	 * 请求参数
	 */
	private Object reqParams;

	/**
	 * 请求body
	 */
	private Object reqBody;

	/**
	 * 响应状态码
	 */
	private Integer httpStatus;

	/**
	 * 响应信息
	 */
	private Object result;

	/**
	 * 错误消息
	 */
	private String errorMsg;

	/**
	 * 执行时长
	 */
	private Long time;

	/**
	 * 创建时间
	 */
	private LocalDateTime createTime;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy