添加日志记录

This commit is contained in:
韩鹏辉
2023-09-08 18:04:59 +08:00
parent eed0cea448
commit 640707ccd3
3 changed files with 129 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package com.chaozhanggui.dao.system.dao;
import com.chaozhanggui.dao.system.entity.TbPlussAdminRecode;
import com.chaozhanggui.dao.system.entity.TbPlussAdminRecodeWithBLOBs;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
@Component
@Mapper
public interface TbPlussAdminRecodeMapper {
int deleteByPrimaryKey(Integer id);
int insert(TbPlussAdminRecodeWithBLOBs record);
int insertSelective(TbPlussAdminRecodeWithBLOBs record);
TbPlussAdminRecodeWithBLOBs selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(TbPlussAdminRecodeWithBLOBs record);
int updateByPrimaryKeyWithBLOBs(TbPlussAdminRecodeWithBLOBs record);
int updateByPrimaryKey(TbPlussAdminRecode record);
}

View File

@@ -0,0 +1,78 @@
package com.chaozhanggui.dao.system.entity;
import java.io.Serializable;
import java.util.Date;
public class TbPlussAdminRecode implements Serializable {
private Integer id;
private Integer userId;
private String operationCode;
private String ip;
private String remark;
private Date createTime;
private Date updateTime;
private static final long serialVersionUID = 1L;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getOperationCode() {
return operationCode;
}
public void setOperationCode(String operationCode) {
this.operationCode = operationCode == null ? null : operationCode.trim();
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip == null ? null : ip.trim();
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}

View File

@@ -0,0 +1,27 @@
package com.chaozhanggui.dao.system.entity;
import java.io.Serializable;
public class TbPlussAdminRecodeWithBLOBs extends TbPlussAdminRecode implements Serializable {
private String reqBody;
private String responseBody;
private static final long serialVersionUID = 1L;
public String getReqBody() {
return reqBody;
}
public void setReqBody(String reqBody) {
this.reqBody = reqBody == null ? null : reqBody.trim();
}
public String getResponseBody() {
return responseBody;
}
public void setResponseBody(String responseBody) {
this.responseBody = responseBody == null ? null : responseBody.trim();
}
}