mirror of
https://github.com/201206030/novel-plus.git
synced 2025-07-03 07:56:38 +00:00
112 lines
1.9 KiB
Java
112 lines
1.9 KiB
Java
package com.java2nb.common.domain;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
import java.util.Date;
|
|
|
|
public class LogDO {
|
|
private Long id;
|
|
|
|
private Long userId;
|
|
|
|
private String username;
|
|
|
|
private String operation;
|
|
|
|
private Integer time;
|
|
|
|
private String method;
|
|
|
|
private String params;
|
|
|
|
private String ip;
|
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
|
private Date gmtCreate;
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Long getUserId() {
|
|
return userId;
|
|
}
|
|
|
|
public void setUserId(Long userId) {
|
|
this.userId = userId;
|
|
}
|
|
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
|
|
public void setUsername(String username) {
|
|
this.username = username == null ? null : username.trim();
|
|
}
|
|
|
|
public String getOperation() {
|
|
return operation;
|
|
}
|
|
|
|
public void setOperation(String operation) {
|
|
this.operation = operation == null ? null : operation.trim();
|
|
}
|
|
|
|
public Integer getTime() {
|
|
return time;
|
|
}
|
|
|
|
public void setTime(Integer time) {
|
|
this.time = time;
|
|
}
|
|
|
|
public String getMethod() {
|
|
return method;
|
|
}
|
|
|
|
public void setMethod(String method) {
|
|
this.method = method == null ? null : method.trim();
|
|
}
|
|
|
|
public String getParams() {
|
|
return params;
|
|
}
|
|
|
|
public void setParams(String params) {
|
|
this.params = params == null ? null : params.trim();
|
|
}
|
|
|
|
public String getIp() {
|
|
return ip;
|
|
}
|
|
|
|
public void setIp(String ip) {
|
|
this.ip = ip == null ? null : ip.trim();
|
|
}
|
|
|
|
public Date getGmtCreate() {
|
|
return gmtCreate;
|
|
}
|
|
|
|
public void setGmtCreate(Date gmtCreate) {
|
|
this.gmtCreate = gmtCreate;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "LogDO{" +
|
|
"id=" + id +
|
|
", userId=" + userId +
|
|
", username='" + username + '\'' +
|
|
", operation='" + operation + '\'' +
|
|
", time=" + time +
|
|
", method='" + method + '\'' +
|
|
", params='" + params + '\'' +
|
|
", ip='" + ip + '\'' +
|
|
", gmtCreate=" + gmtCreate +
|
|
'}';
|
|
}
|
|
} |