IotTerminal.java 2.2 KB
package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 终端对象 iot_terminal
 * 
 * @author 钟来
 * @date 2022-08-26
 */
@ApiModel("终端")
public class IotTerminal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 网关id */
    @ApiModelProperty("网关id")
    private String device_id;

    /** 主键id */
    @ApiModelProperty("主键id")
    private String id;

    /** 终端名称 */
    @ApiModelProperty("终端名称")
    private String name;

    /** 物模型值 */
    @ApiModelProperty("物模型值")
    private String things_model_value;

    /** 更新时间 */
    @ApiModelProperty("更新时间")
    private Integer update_time;

    public void setDevice_id(String device_id) 
    {
        this.device_id = device_id;
    }

    public String getDevice_id() 
    {
        return device_id;
    }
    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setThings_model_value(String things_model_value) 
    {
        this.things_model_value = things_model_value;
    }

    public String getThings_model_value() 
    {
        return things_model_value;
    }
    public void setUpdate_time(Integer update_time) 
    {
        this.update_time = update_time;
    }

    public Integer getUpdate_time() 
    {
        return update_time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("device_id", getDevice_id())
            .append("id", getId())
            .append("name", getName())
            .append("things_model_value", getThings_model_value())
            .append("update_time", getUpdate_time())
            .toString();
    }
}