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

import com.ruoyi.system.domain.tool.PublicSQLConfig;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 终端对象 iot_terminal
 * 
 * @author 钟来
 * @date 2022-08-26
 */
@ApiModel("终端")
public class IotTerminal implements Serializable
{
    @PublicSQLConfig(isSelect=false)
    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;
    @ApiModelProperty("物模型配置")
    private String things_model_config; //payload 协议模型

    @ApiModelProperty("产品id")
    private Integer product_id;

    @ApiModelProperty("产品名称")
    private String mqtt_username;

    @ApiModelProperty("数据更新时间")
    private Integer data_update_time;

    private UserTerminalGroupRelation userTerminalGroupRelation;

    private IotDevice iotDevice;

    public IotDevice getIotDevice() {
        return iotDevice;
    }

    public void setIotDevice(IotDevice iotDevice) {
        this.iotDevice = iotDevice;
    }

    public UserTerminalGroupRelation getUserTerminalGroupRelation() {
        return userTerminalGroupRelation;
    }

    public void setUserTerminalGroupRelation(UserTerminalGroupRelation userTerminalGroupRelation) {
        this.userTerminalGroupRelation = userTerminalGroupRelation;
    }

    public Integer getData_update_time() {
        return data_update_time;
    }

    public void setData_update_time(Integer data_update_time) {
        this.data_update_time = data_update_time;
    }
    public Integer getProduct_id() {
        return product_id;
    }

    public void setProduct_id(Integer product_id) {
        this.product_id = product_id;
    }

    public String getMqtt_username() {
        return mqtt_username;
    }

    public void setMqtt_username(String mqtt_username) {
        this.mqtt_username = mqtt_username;
    }

    public String getThings_model_config() {
        return things_model_config;
    }

    public void setThings_model_config(String things_model_config) {
        this.things_model_config = things_model_config;
    }
    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())
                .append("product_id", getProduct_id())
                .append("mqtt_username", getMqtt_username())
            .toString();
    }
}