mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-27 13:29:58 +08:00
返回字段驼峰阀改为下划线
This commit is contained in:
@@ -4,19 +4,21 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName admin_logs
|
||||
*/
|
||||
@TableName(value ="admin_logs")
|
||||
@TableName(value = "admin_logs")
|
||||
@Data
|
||||
public class AdminLog implements Serializable {
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
@@ -24,6 +26,7 @@ public class AdminLog implements Serializable {
|
||||
/**
|
||||
* 管理员ID
|
||||
*/
|
||||
@JsonProperty("admin_id")
|
||||
private Integer adminId;
|
||||
|
||||
/**
|
||||
@@ -49,11 +52,10 @@ public class AdminLog implements Serializable {
|
||||
/**
|
||||
* 地址
|
||||
*/
|
||||
@JsonProperty("ip_area")
|
||||
private String ipArea;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@JsonProperty("created_at")
|
||||
private Date createdAt;
|
||||
|
||||
@TableField(exist = false)
|
||||
@@ -72,13 +74,13 @@ public class AdminLog implements Serializable {
|
||||
}
|
||||
AdminLog other = (AdminLog) that;
|
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
||||
&& (this.getAdminId() == null ? other.getAdminId() == null : this.getAdminId().equals(other.getAdminId()))
|
||||
&& (this.getModule() == null ? other.getModule() == null : this.getModule().equals(other.getModule()))
|
||||
&& (this.getOpt() == null ? other.getOpt() == null : this.getOpt().equals(other.getOpt()))
|
||||
&& (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
|
||||
&& (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()))
|
||||
&& (this.getIpArea() == null ? other.getIpArea() == null : this.getIpArea().equals(other.getIpArea()))
|
||||
&& (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()));
|
||||
&& (this.getAdminId() == null ? other.getAdminId() == null : this.getAdminId().equals(other.getAdminId()))
|
||||
&& (this.getModule() == null ? other.getModule() == null : this.getModule().equals(other.getModule()))
|
||||
&& (this.getOpt() == null ? other.getOpt() == null : this.getOpt().equals(other.getOpt()))
|
||||
&& (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
|
||||
&& (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()))
|
||||
&& (this.getIpArea() == null ? other.getIpArea() == null : this.getIpArea().equals(other.getIpArea()))
|
||||
&& (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user