package com.doctor.esper.event;

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

public class HttpLog implements Serializable {

	private static final long serialVersionUID = -4462410669092068376L;

	private Long id;

	private String machineId;

	private String requestPath;

	private String referer;

	// private String ip;

	private String userAgent;

	private LocalDateTime time;

	public HttpLog(Long id, String machineId, String requestPath, String referer, String userAgent, LocalDateTime time) {
		this.id = id;
		this.machineId = machineId;
		this.requestPath = requestPath;
		this.referer = referer;
		this.userAgent = userAgent;
		this.time = time;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getMachineId() {
		return machineId;
	}

	public void setMachineId(String machineId) {
		this.machineId = machineId;
	}

	public String getRequestPath() {
		return requestPath;
	}

	public void setRequestPath(String requestPath) {
		this.requestPath = requestPath;
	}

	public String getReferer() {
		return referer;
	}

	public void setReferer(String referer) {
		this.referer = referer;
	}

	public String getUserAgent() {
		return userAgent;
	}

	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}

	public LocalDateTime getTime() {
		return time;
	}

	public void setTime(LocalDateTime time) {
		this.time = time;
	}

}

@@ -93,16 +93,53 @@
 ime;%0D%0A%0D%0A
+import com.alibaba.fastjson.JSON;%0D%0A%0D%0A
 public c
@@ -261,20 +261,19 @@
 private 
-Long
+int
  id;%0D%0A%0D%0A
@@ -466,20 +466,48 @@
 HttpLog(
-Long
+) %7B%0D%0A%0D%0A%09%7D%0D%0A%0D%0A%09public HttpLog(int
  id, Str
@@ -774,20 +774,19 @@
 %09public 
-Long
+int
  getId()
@@ -832,12 +832,11 @@
 tId(
-Long
+int
  id)
@@ -1566,11 +1566,91 @@
 %0D%0A%09%7D%0D%0A%0D%0A
+%09@Override%0D%0A%09public String toString() %7B%0D%0A%09%09return JSON.toJSONString(this);%0D%0A%09%7D%0D%0A
 %7D%0D%0A

update id java type