package com.common.entity;

import java.time.LocalDateTime;

/**
 * 封禁记录表实体类
 * 对应表: device_interlocking_log
 */
public class DeviceInterlockingLog {
    private Long id;
    private Long deviceInterlockingCmdId;      // 封禁指令ID
    private Long deviceInterlockingId;         // 封禁设备ID
    private String banIp;                     // 封禁IP地址
    private String deviceName;                 // 封禁设备名称
    private LocalDateTime banTime;            // 封禁时间
    private String banMethod;                  // 封禁方式（0.人工、1.自动化封禁）
    private Integer banResult;                // 联动结果（成功：1、失败：0）
    private String tenantId;
    private Long createDept;
    private Long createBy;
    private LocalDateTime createTime;
    private Long updateBy;
    private LocalDateTime updateTime;
    private String remark;
    private String respBody;                 // 响应body
    private String reqBody;                   // 请求body

    // Getter and Setter
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }

    public Long getDeviceInterlockingCmdId() { return deviceInterlockingCmdId; }
    public void setDeviceInterlockingCmdId(Long deviceInterlockingCmdId) { this.deviceInterlockingCmdId = deviceInterlockingCmdId; }

    public Long getDeviceInterlockingId() { return deviceInterlockingId; }
    public void setDeviceInterlockingId(Long deviceInterlockingId) { this.deviceInterlockingId = deviceInterlockingId; }

    public String getBanIp() { return banIp; }
    public void setBanIp(String banIp) { this.banIp = banIp; }

    public String getDeviceName() { return deviceName; }
    public void setDeviceName(String deviceName) { this.deviceName = deviceName; }

    public LocalDateTime getBanTime() { return banTime; }
    public void setBanTime(LocalDateTime banTime) { this.banTime = banTime; }

    public String getBanMethod() { return banMethod; }
    public void setBanMethod(String banMethod) { this.banMethod = banMethod; }

    public Integer getBanResult() { return banResult; }
    public void setBanResult(Integer banResult) { this.banResult = banResult; }

    public String getTenantId() { return tenantId; }
    public void setTenantId(String tenantId) { this.tenantId = tenantId; }

    public Long getCreateDept() { return createDept; }
    public void setCreateDept(Long createDept) { this.createDept = createDept; }

    public Long getCreateBy() { return createBy; }
    public void setCreateBy(Long createBy) { this.createBy = createBy; }

    public LocalDateTime getCreateTime() { return createTime; }
    public void setCreateTime(LocalDateTime createTime) { this.createTime = createTime; }

    public Long getUpdateBy() { return updateBy; }
    public void setUpdateBy(Long updateBy) { this.updateBy = updateBy; }

    public LocalDateTime getUpdateTime() { return updateTime; }
    public void setUpdateTime(LocalDateTime updateTime) { this.updateTime = updateTime; }

    public String getRemark() { return remark; }
    public void setRemark(String remark) { this.remark = remark; }

    public String getRespBody() { return respBody; }
    public void setRespBody(String respBody) { this.respBody = respBody; }

    public String getReqBody() { return reqBody; }
    public void setReqBody(String reqBody) { this.reqBody = reqBody; }

    @Override
    public String toString() {
        return "DeviceInterlockingLog{" +
                "id=" + id +
                ", deviceInterlockingCmdId=" + deviceInterlockingCmdId +
                ", banIp='" + banIp + '\'' +
                ", deviceName='" + deviceName + '\'' +
                ", banResult=" + banResult +
                '}';
    }
}
