mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-27 13:29:58 +08:00
管理员日志重构--新增管理员日志注解
This commit is contained in:
@@ -43,11 +43,27 @@ public class AdminLog implements Serializable {
|
||||
/** 模块 */
|
||||
private String module;
|
||||
|
||||
/** 操作指令 */
|
||||
private String opt;
|
||||
/** 标题 */
|
||||
private String title;
|
||||
|
||||
/** 备注 */
|
||||
private String remark;
|
||||
/** 操作指令 */
|
||||
private Integer opt;
|
||||
|
||||
/** 请求方法 */
|
||||
private String method;
|
||||
|
||||
/** 请求方式 POST,GET,PUT,DELETE */
|
||||
@JsonProperty("request_method")
|
||||
private String requestMethod;
|
||||
|
||||
/** 请求URL */
|
||||
private String url;
|
||||
|
||||
/** 请求参数 */
|
||||
private String param;
|
||||
|
||||
/** 返回参数 */
|
||||
private String result;
|
||||
|
||||
/** ip */
|
||||
private String ip;
|
||||
@@ -56,6 +72,10 @@ public class AdminLog implements Serializable {
|
||||
@JsonProperty("ip_area")
|
||||
private String ipArea;
|
||||
|
||||
/** 备注 */
|
||||
@JsonProperty("error_msg")
|
||||
private String errorMsg;
|
||||
|
||||
@JsonProperty("created_at")
|
||||
private Date createdAt;
|
||||
|
||||
@@ -81,18 +101,36 @@ public class AdminLog implements Serializable {
|
||||
&& (this.getModule() == null
|
||||
? other.getModule() == null
|
||||
: this.getModule().equals(other.getModule()))
|
||||
&& (this.getTitle() == null
|
||||
? other.getTitle() == null
|
||||
: this.getTitle().equals(other.getTitle()))
|
||||
&& (this.getOpt() == null
|
||||
? other.getOpt() == null
|
||||
: this.getOpt().equals(other.getOpt()))
|
||||
&& (this.getRemark() == null
|
||||
? other.getRemark() == null
|
||||
: this.getRemark().equals(other.getRemark()))
|
||||
&& (this.getMethod() == null
|
||||
? other.getMethod() == null
|
||||
: this.getMethod().equals(other.getMethod()))
|
||||
&& (this.getRequestMethod() == null
|
||||
? other.getRequestMethod() == null
|
||||
: this.getRequestMethod().equals(other.getRequestMethod()))
|
||||
&& (this.getUrl() == null
|
||||
? other.getUrl() == null
|
||||
: this.getUrl().equals(other.getUrl()))
|
||||
&& (this.getParam() == null
|
||||
? other.getParam() == null
|
||||
: this.getParam().equals(other.getParam()))
|
||||
&& (this.getResult() == null
|
||||
? other.getResult() == null
|
||||
: this.getResult().equals(other.getResult()))
|
||||
&& (this.getIp() == null
|
||||
? other.getIp() == null
|
||||
: this.getIp().equals(other.getIp()))
|
||||
&& (this.getIpArea() == null
|
||||
? other.getIpArea() == null
|
||||
: this.getIpArea().equals(other.getIpArea()))
|
||||
&& (this.getErrorMsg() == null
|
||||
? other.getErrorMsg() == null
|
||||
: this.getErrorMsg().equals(other.getErrorMsg()))
|
||||
&& (this.getCreatedAt() == null
|
||||
? other.getCreatedAt() == null
|
||||
: this.getCreatedAt().equals(other.getCreatedAt()));
|
||||
@@ -105,10 +143,16 @@ public class AdminLog implements Serializable {
|
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
||||
result = prime * result + ((getAdminId() == null) ? 0 : getAdminId().hashCode());
|
||||
result = prime * result + ((getModule() == null) ? 0 : getModule().hashCode());
|
||||
result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
|
||||
result = prime * result + ((getOpt() == null) ? 0 : getOpt().hashCode());
|
||||
result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
|
||||
result = prime * result + ((getMethod() == null) ? 0 : getMethod().hashCode());
|
||||
result = prime * result + ((getRequestMethod() == null) ? 0 : getRequestMethod().hashCode());
|
||||
result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
|
||||
result = prime * result + ((getParam() == null) ? 0 : getParam().hashCode());
|
||||
result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode());
|
||||
result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
|
||||
result = prime * result + ((getIpArea() == null) ? 0 : getIpArea().hashCode());
|
||||
result = prime * result + ((getErrorMsg() == null) ? 0 : getErrorMsg().hashCode());
|
||||
result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
|
||||
return result;
|
||||
}
|
||||
@@ -122,10 +166,16 @@ public class AdminLog implements Serializable {
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", adminId=").append(adminId);
|
||||
sb.append(", module=").append(module);
|
||||
sb.append(", title=").append(title);
|
||||
sb.append(", opt=").append(opt);
|
||||
sb.append(", remark=").append(remark);
|
||||
sb.append(", method=").append(method);
|
||||
sb.append(", requestMethod=").append(requestMethod);
|
||||
sb.append(", url=").append(url);
|
||||
sb.append(", param=").append(param);
|
||||
sb.append(", result=").append(result);
|
||||
sb.append(", ip=").append(ip);
|
||||
sb.append(", ipArea=").append(ipArea);
|
||||
sb.append(", errorMsg=").append(errorMsg);
|
||||
sb.append(", createdAt=").append(createdAt);
|
||||
sb.append(", serialVersionUID=").append(serialVersionUID);
|
||||
sb.append("]");
|
||||
|
||||
Reference in New Issue
Block a user