package com.inspect.partrolresult.domain;

import com.inspect.base.core.annotation.Excel;
import com.inspect.base.core.web.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Setter
@Getter
public class BasedataEqpBookChannel extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long channelId;
    @Excel(
            name = "通道编码"
    )
    private String channelCode;
    @Excel(
            name = "通道名称"
    )
    private String channelName;
    @Excel(
            name = "上级通道id，保留字段"
    )
    private String parentChannelId;
    @Excel(
            name = "设备ID"
    )
    private Long eqpBookId;
    @Excel(
            name = "设备名称"
    )
    private String eqpBookName;
    @Excel(
            name = "通道类型：vl可见光，ir红外，ptz云台，ng导航，取自数据字典"
    )
    private String channelType;
    @Excel(
            name = "状态，1：在线；0：离线，字段保留,数据大多来源于缓存数据库"
    )
    private String onlineState;
    @Excel(
            name = "通道具体内容，不同通道，里面的具体内容是不一样的，比如调焦，变倍，云台，都是不同的"
    )
    private String channelContent;
    @Excel(
            name = "接入方式",
            readConverterExp = "保=留字段"
    )
    private String provider;
    @Excel(
            name = "地址,如果需要对方提供一体ip和端口使用"
    )
    private String address;
    @Excel(
            name = "主机ip"
    )
    private String host;
    @Excel(
            name = "端口"
    )
    private String port;
    private String deleteFlag;
    @Excel(
            name = "设备编号"
    )
    private String patrolDeviceCode;
    @Excel(
            name = "用户"
    )
    private String username;
    @Excel(
            name = "密码"
    )
    private String password;

    @Override
    public String toString() {
        return "BasedataEqpBookChannel{" +
                "channelId=" + channelId +
                ", channelCode='" + channelCode + '\'' +
                ", channelName='" + channelName + '\'' +
                ", parentChannelId='" + parentChannelId + '\'' +
                ", eqpBookId=" + eqpBookId +
                ", eqpBookName='" + eqpBookName + '\'' +
                ", channelType='" + channelType + '\'' +
                ", onlineState='" + onlineState + '\'' +
                ", channelContent='" + channelContent + '\'' +
                ", provider='" + provider + '\'' +
                ", address='" + address + '\'' +
                ", host='" + host + '\'' +
                ", port='" + port + '\'' +
                ", deleteFlag='" + deleteFlag + '\'' +
                ", patrolDeviceCode='" + patrolDeviceCode + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
