mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-19 17:35:54 +08:00
发布v1.1版本
This commit is contained in:
@@ -0,0 +1,108 @@
|
||||
package com.ruoyi.iot.model;
|
||||
|
||||
/**
|
||||
* 动作
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class Action
|
||||
{
|
||||
/** 标识符 */
|
||||
private String id;
|
||||
|
||||
/** 名称 */
|
||||
private String name;
|
||||
|
||||
/** 值 */
|
||||
private String value;
|
||||
|
||||
/** 类型:1=属性,2=功能,3=事件,5=设备上线,6=设备下线 */
|
||||
private int type;
|
||||
|
||||
/** 源:1=设备,2=定时,3=告警输出 */
|
||||
private int source;
|
||||
|
||||
/** 设备ID */
|
||||
private Long deviceId;
|
||||
|
||||
/** 设备名称 */
|
||||
private String deviceName;
|
||||
|
||||
/** 告警名称 */
|
||||
private String alertName;
|
||||
|
||||
/** 告警级别 */
|
||||
private int alertLevel;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public int getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
public void setSource(int source) {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
public Long getDeviceId() {
|
||||
return deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(Long deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getAlertName() {
|
||||
return alertName;
|
||||
}
|
||||
|
||||
public void setAlertName(String alertName) {
|
||||
this.alertName = alertName;
|
||||
}
|
||||
|
||||
public int getAlertLevel() {
|
||||
return alertLevel;
|
||||
}
|
||||
|
||||
public void setAlertLevel(int alertLevel) {
|
||||
this.alertLevel = alertLevel;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.ruoyi.iot.model;
|
||||
|
||||
/**
|
||||
* 动作
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class AuthenticateInputModel
|
||||
{
|
||||
/** 设备编号 */
|
||||
private String serialNumber;
|
||||
|
||||
/** 产品ID */
|
||||
private Long productId;
|
||||
|
||||
public AuthenticateInputModel(String serialNumber,Long productId){
|
||||
this.serialNumber=serialNumber;
|
||||
this.productId=productId;
|
||||
}
|
||||
|
||||
public String getSerialNumber() {
|
||||
return serialNumber;
|
||||
}
|
||||
|
||||
public void setSerialNumber(String serialNumber) {
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
public Long getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Long productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.ruoyi.iot.model;
|
||||
|
||||
/**
|
||||
* id和name
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class ChangeProductStatusModel
|
||||
{
|
||||
private Long productId;
|
||||
|
||||
private Integer status;
|
||||
|
||||
public Long getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Long productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
package com.ruoyi.iot.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 设备对象 iot_device
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class DeviceAllShortOutput
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 产品分类ID */
|
||||
private Long deviceId;
|
||||
|
||||
/** 产品分类名称 */
|
||||
private String deviceName;
|
||||
|
||||
/** 产品名称 */
|
||||
private String productName;
|
||||
|
||||
/** 用户昵称 */
|
||||
private String userName;
|
||||
|
||||
/** 设备编号 */
|
||||
private String serialNumber;
|
||||
|
||||
/** 固件版本 */
|
||||
private BigDecimal firmwareVersion;
|
||||
|
||||
/** 设备状态(1-未激活,2-禁用,3-在线,4-离线) */
|
||||
private Integer status;
|
||||
|
||||
/** 设备影子 */
|
||||
private Integer isShadow;
|
||||
|
||||
/** wifi信号强度(信号极好4格[-55— 0],信号好3格[-70— -55],信号一般2格[-85— -70],信号差1格[-100— -85]) */
|
||||
private Integer rssi;
|
||||
|
||||
/** 激活时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date activeTime;
|
||||
|
||||
/** 是否自定义位置 **/
|
||||
private Integer isCustomLocation;
|
||||
|
||||
/** 设备地址 */
|
||||
private String networkAddress;
|
||||
|
||||
/** 经度 */
|
||||
private BigDecimal longitude;
|
||||
|
||||
/** 纬度 */
|
||||
private BigDecimal latitude;
|
||||
|
||||
public String getNetworkAddress() {
|
||||
return networkAddress;
|
||||
}
|
||||
|
||||
public void setNetworkAddress(String networkAddress) {
|
||||
this.networkAddress = networkAddress;
|
||||
}
|
||||
|
||||
public BigDecimal getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(BigDecimal longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public BigDecimal getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(BigDecimal latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public Integer getIsCustomLocation() {
|
||||
return isCustomLocation;
|
||||
}
|
||||
|
||||
public void setIsCustomLocation(Integer isCustomLocation) {
|
||||
this.isCustomLocation = isCustomLocation;
|
||||
}
|
||||
|
||||
public Integer getIsShadow() {
|
||||
return isShadow;
|
||||
}
|
||||
|
||||
public void setIsShadow(Integer isShadow) {
|
||||
this.isShadow = isShadow;
|
||||
}
|
||||
|
||||
public void setRssi(Integer rssi)
|
||||
{
|
||||
this.rssi = rssi;
|
||||
}
|
||||
|
||||
public Integer getRssi()
|
||||
{
|
||||
return rssi;
|
||||
}
|
||||
|
||||
public void setDeviceId(Long deviceId)
|
||||
{
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public Long getDeviceId()
|
||||
{
|
||||
return deviceId;
|
||||
}
|
||||
public void setDeviceName(String deviceName)
|
||||
{
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceName()
|
||||
{
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
public void setProductName(String productName)
|
||||
{
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getProductName()
|
||||
{
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName)
|
||||
{
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getUserName()
|
||||
{
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setSerialNumber(String serialNumber)
|
||||
{
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
public String getSerialNumber()
|
||||
{
|
||||
return serialNumber;
|
||||
}
|
||||
public void setFirmwareVersion(BigDecimal firmwareVersion)
|
||||
{
|
||||
this.firmwareVersion = firmwareVersion;
|
||||
}
|
||||
|
||||
public BigDecimal getFirmwareVersion()
|
||||
{
|
||||
return firmwareVersion;
|
||||
}
|
||||
|
||||
public void setActiveTime(Date activeTime)
|
||||
{
|
||||
this.activeTime = activeTime;
|
||||
}
|
||||
|
||||
public Date getActiveTime()
|
||||
{
|
||||
return activeTime;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.ruoyi.iot.model;
|
||||
|
||||
|
||||
public class DeviceAuthenticateModel {
|
||||
/** 产品分类ID */
|
||||
private Long deviceId;
|
||||
|
||||
/** 产品分类名称 */
|
||||
private String deviceName;
|
||||
|
||||
/**设备状态(1-未激活,2-禁用,3-在线,4-离线)**/
|
||||
private int status;
|
||||
|
||||
/** 产品ID */
|
||||
private Long productId;
|
||||
|
||||
/** 产品名称 */
|
||||
private String productName;
|
||||
|
||||
/** 产品状态 1-未发布,2-已发布 */
|
||||
private int productStatus;
|
||||
|
||||
/** 设备编号 */
|
||||
private String serialNumber;
|
||||
|
||||
/** mqtt账号 */
|
||||
private String mqttAccount;
|
||||
|
||||
/** mqtt密码 */
|
||||
private String mqttPassword;
|
||||
|
||||
/** 产品秘钥 */
|
||||
private String mqttSecret;
|
||||
|
||||
public int getProductStatus() {
|
||||
return productStatus;
|
||||
}
|
||||
|
||||
public void setProductStatus(int productStatus) {
|
||||
this.productStatus = productStatus;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Long getDeviceId() {
|
||||
return deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(Long deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public Long getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Long productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getProductName() {
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setProductName(String productName) {
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getSerialNumber() {
|
||||
return serialNumber;
|
||||
}
|
||||
|
||||
public void setSerialNumber(String serialNumber) {
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
public String getMqttAccount() {
|
||||
return mqttAccount;
|
||||
}
|
||||
|
||||
public void setMqttAccount(String mqttAccount) {
|
||||
this.mqttAccount = mqttAccount;
|
||||
}
|
||||
|
||||
public String getMqttPassword() {
|
||||
return mqttPassword;
|
||||
}
|
||||
|
||||
public void setMqttPassword(String mqttPassword) {
|
||||
this.mqttPassword = mqttPassword;
|
||||
}
|
||||
|
||||
public String getMqttSecret() {
|
||||
return mqttSecret;
|
||||
}
|
||||
|
||||
public void setMqttSecret(String mqttSecret) {
|
||||
this.mqttSecret = mqttSecret;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.ruoyi.iot.model;
|
||||
|
||||
/**
|
||||
* 设备分组对象 iot_device_group
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class DeviceGroupInput
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 分组ID */
|
||||
private Long groupId;
|
||||
|
||||
/** 设备ID */
|
||||
private Long[] deviceIds;
|
||||
|
||||
public Long getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
|
||||
public void setGroupId(Long groupId) {
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public Long[] getDeviceIds() {
|
||||
return deviceIds;
|
||||
}
|
||||
|
||||
public void setDeviceIds(Long[] deviceIds) {
|
||||
this.deviceIds = deviceIds;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,311 @@
|
||||
package com.ruoyi.iot.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.iot.model.ThingsModelItem.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备对象 iot_device
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class DeviceShortOutput
|
||||
{
|
||||
public DeviceShortOutput(){
|
||||
this.stringList=new ArrayList<>();
|
||||
this.integerList=new ArrayList<>();
|
||||
this.decimalList=new ArrayList<>();
|
||||
this.enumList=new ArrayList<>();
|
||||
this.arrayList=new ArrayList<>();
|
||||
this.readOnlyList =new ArrayList<>();
|
||||
this.boolList=new ArrayList<>();
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 产品分类ID */
|
||||
private Long deviceId;
|
||||
|
||||
/** 产品分类名称 */
|
||||
@Excel(name = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 产品ID */
|
||||
@Excel(name = "产品ID")
|
||||
private Long productId;
|
||||
|
||||
/** 产品名称 */
|
||||
@Excel(name = "产品名称")
|
||||
private String productName;
|
||||
|
||||
/** 用户ID */
|
||||
@Excel(name = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
/** 用户昵称 */
|
||||
@Excel(name = "用户昵称")
|
||||
private String userName;
|
||||
|
||||
/** 租户ID */
|
||||
@Excel(name = "租户ID")
|
||||
private Long tenantId;
|
||||
|
||||
/** 租户名称 */
|
||||
@Excel(name = "租户名称")
|
||||
private String tenantName;
|
||||
|
||||
/** 设备编号 */
|
||||
@Excel(name = "设备编号")
|
||||
private String serialNumber;
|
||||
|
||||
/** 固件版本 */
|
||||
@Excel(name = "固件版本")
|
||||
private BigDecimal firmwareVersion;
|
||||
|
||||
/** 设备状态(1-未激活,2-禁用,3-在线,4-离线) */
|
||||
@Excel(name = "设备状态")
|
||||
private Integer status;
|
||||
|
||||
/** 设备影子 */
|
||||
private Integer isShadow;
|
||||
|
||||
/** wifi信号强度(信号极好4格[-55— 0],信号好3格[-70— -55],信号一般2格[-85— -70],信号差1格[-100— -85]) */
|
||||
@Excel(name = "wifi信号强度")
|
||||
private Integer rssi;
|
||||
|
||||
@Excel(name = "物模型")
|
||||
private String thingsModelValue;
|
||||
|
||||
/** 激活时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "激活时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date activeTime;
|
||||
|
||||
/** 是否自定义位置 **/
|
||||
private Integer isCustomLocation;
|
||||
|
||||
/** 图片地址 */
|
||||
private String imgUrl;
|
||||
|
||||
private List<StringModelOutput> stringList;
|
||||
private List<IntegerModelOutput> integerList;
|
||||
private List<DecimalModelOutput> decimalList;
|
||||
private List<EnumModelOutput> enumList;
|
||||
private List<ArrayModelOutput> arrayList;
|
||||
private List<BoolModelOutput> boolList;
|
||||
private List<ReadOnlyModelOutput> readOnlyList;
|
||||
|
||||
public Integer getIsCustomLocation() {
|
||||
return isCustomLocation;
|
||||
}
|
||||
|
||||
public void setIsCustomLocation(Integer isCustomLocation) {
|
||||
this.isCustomLocation = isCustomLocation;
|
||||
}
|
||||
|
||||
public String getImgUrl() {
|
||||
return imgUrl;
|
||||
}
|
||||
|
||||
public void setImgUrl(String imgUrl) {
|
||||
this.imgUrl = imgUrl;
|
||||
}
|
||||
|
||||
public Integer getIsShadow() {
|
||||
return isShadow;
|
||||
}
|
||||
|
||||
public void setIsShadow(Integer isShadow) {
|
||||
this.isShadow = isShadow;
|
||||
}
|
||||
|
||||
public List<BoolModelOutput> getBoolList() {
|
||||
return boolList;
|
||||
}
|
||||
|
||||
public void setBoolList(List<BoolModelOutput> boolList) {
|
||||
this.boolList = boolList;
|
||||
}
|
||||
|
||||
public List<ReadOnlyModelOutput> getReadOnlyList() {
|
||||
return readOnlyList;
|
||||
}
|
||||
|
||||
public void setReadOnlyList(List<ReadOnlyModelOutput> readOnlyList) {
|
||||
this.readOnlyList = readOnlyList;
|
||||
}
|
||||
|
||||
public List<StringModelOutput> getStringList() {
|
||||
return stringList;
|
||||
}
|
||||
|
||||
public void setStringList(List<StringModelOutput> stringList) {
|
||||
this.stringList = stringList;
|
||||
}
|
||||
|
||||
public List<IntegerModelOutput> getIntegerList() {
|
||||
return integerList;
|
||||
}
|
||||
|
||||
public void setIntegerList(List<IntegerModelOutput> integerList) {
|
||||
this.integerList = integerList;
|
||||
}
|
||||
|
||||
public List<DecimalModelOutput> getDecimalList() {
|
||||
return decimalList;
|
||||
}
|
||||
|
||||
public void setDecimalList(List<DecimalModelOutput> decimalList) {
|
||||
this.decimalList = decimalList;
|
||||
}
|
||||
|
||||
public List<EnumModelOutput> getEnumList() {
|
||||
return enumList;
|
||||
}
|
||||
|
||||
public void setEnumList(List<EnumModelOutput> enumList) {
|
||||
this.enumList = enumList;
|
||||
}
|
||||
|
||||
public List<ArrayModelOutput> getArrayList() {
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
public void setArrayList(List<ArrayModelOutput> arrayList) {
|
||||
this.arrayList = arrayList;
|
||||
}
|
||||
public void setRssi(Integer rssi)
|
||||
{
|
||||
this.rssi = rssi;
|
||||
}
|
||||
|
||||
public Integer getRssi()
|
||||
{
|
||||
return rssi;
|
||||
}
|
||||
public void setThingsModelValue(String thingsModelValue)
|
||||
{
|
||||
this.thingsModelValue = thingsModelValue;
|
||||
}
|
||||
|
||||
public String getThingsModelValue()
|
||||
{
|
||||
return thingsModelValue;
|
||||
}
|
||||
public void setDeviceId(Long deviceId)
|
||||
{
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public Long getDeviceId()
|
||||
{
|
||||
return deviceId;
|
||||
}
|
||||
public void setDeviceName(String deviceName)
|
||||
{
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceName()
|
||||
{
|
||||
return deviceName;
|
||||
}
|
||||
public void setProductId(Long productId)
|
||||
{
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public Long getProductId()
|
||||
{
|
||||
return productId;
|
||||
}
|
||||
public void setProductName(String productName)
|
||||
{
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getProductName()
|
||||
{
|
||||
return productName;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
public void setUserName(String userName)
|
||||
{
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getUserName()
|
||||
{
|
||||
return userName;
|
||||
}
|
||||
public void setTenantId(Long tenantId)
|
||||
{
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public Long getTenantId()
|
||||
{
|
||||
return tenantId;
|
||||
}
|
||||
public void setTenantName(String tenantName)
|
||||
{
|
||||
this.tenantName = tenantName;
|
||||
}
|
||||
|
||||
public String getTenantName()
|
||||
{
|
||||
return tenantName;
|
||||
}
|
||||
public void setSerialNumber(String serialNumber)
|
||||
{
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
public String getSerialNumber()
|
||||
{
|
||||
return serialNumber;
|
||||
}
|
||||
public void setFirmwareVersion(BigDecimal firmwareVersion)
|
||||
{
|
||||
this.firmwareVersion = firmwareVersion;
|
||||
}
|
||||
|
||||
public BigDecimal getFirmwareVersion()
|
||||
{
|
||||
return firmwareVersion;
|
||||
}
|
||||
|
||||
public void setActiveTime(Date activeTime)
|
||||
{
|
||||
this.activeTime = activeTime;
|
||||
}
|
||||
|
||||
public Date getActiveTime()
|
||||
{
|
||||
return activeTime;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.ruoyi.iot.model;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* id和name
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class IdAndName
|
||||
{
|
||||
private Long id;
|
||||
|
||||
private String name;
|
||||
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("categoryId", getId())
|
||||
.append("categoryName", getName())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.ruoyi.iot.model;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 产品分类的Id和名称输出
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class IdOutput
|
||||
{
|
||||
private Long id;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.ruoyi.iot.model;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 导入产品物模型的输入对象
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class ImportThingsModelInput
|
||||
{
|
||||
/** 产品ID */
|
||||
private Long productId;
|
||||
|
||||
/** 产品名称 */
|
||||
private String ProductName;
|
||||
|
||||
/** 通用物模型ID集合 */
|
||||
private Long[] templateIds;
|
||||
|
||||
public Long getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Long productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getProductName() {
|
||||
return ProductName;
|
||||
}
|
||||
|
||||
public void setProductName(String productName) {
|
||||
ProductName = productName;
|
||||
}
|
||||
|
||||
public Long[] getTemplateIds() {
|
||||
return templateIds;
|
||||
}
|
||||
|
||||
public void setTemplateIds(Long[] templateIds) {
|
||||
this.templateIds = templateIds;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.ruoyi.iot.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 动作
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class MonitorModel
|
||||
{
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date time;
|
||||
|
||||
private String value;
|
||||
|
||||
public Date getTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
public void setTime(Date time) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.ruoyi.iot.model;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* id和name
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class MqttAuthModel
|
||||
{
|
||||
private String clientid;
|
||||
|
||||
private String username;
|
||||
|
||||
private String password;
|
||||
|
||||
public String getClientid() {
|
||||
return clientid;
|
||||
}
|
||||
|
||||
public void setClientid(String clientid) {
|
||||
this.clientid = clientid;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.ruoyi.iot.model;
|
||||
|
||||
/**
|
||||
* 客户端连接模型
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class MqttClientConnectModel
|
||||
{
|
||||
/** 事件名称(固定为:"client_connected" "client_disconnected") **/
|
||||
private String action;
|
||||
|
||||
/** 客户端 ClientId **/
|
||||
private String clientid;
|
||||
|
||||
/** 客户端 Username,不存在时该值为 "undefined" **/
|
||||
private String username;
|
||||
|
||||
/** 客户端源 IP 地址 **/
|
||||
private String ipaddress;
|
||||
|
||||
/** 客户端申请的心跳保活时间 **/
|
||||
private Integer keepalive;
|
||||
|
||||
/** 协议版本号 **/
|
||||
private Integer proto_ver;
|
||||
|
||||
/** 时间戳(秒) **/
|
||||
private Integer connected_at;
|
||||
|
||||
/** 错误原因 **/
|
||||
private String reason;
|
||||
|
||||
public String getAction() {
|
||||
return action;
|
||||
}
|
||||
|
||||
public void setAction(String action) {
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
public String getClientid() {
|
||||
return clientid;
|
||||
}
|
||||
|
||||
public void setClientid(String clientid) {
|
||||
this.clientid = clientid;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getIpaddress() {
|
||||
return ipaddress;
|
||||
}
|
||||
|
||||
public void setIpaddress(String ipaddress) {
|
||||
this.ipaddress = ipaddress;
|
||||
}
|
||||
|
||||
public Integer getKeepalive() {
|
||||
return keepalive;
|
||||
}
|
||||
|
||||
public void setKeepalive(Integer keepalive) {
|
||||
this.keepalive = keepalive;
|
||||
}
|
||||
|
||||
public Integer getProto_ver() {
|
||||
return proto_ver;
|
||||
}
|
||||
|
||||
public void setProto_ver(Integer proto_ver) {
|
||||
this.proto_ver = proto_ver;
|
||||
}
|
||||
|
||||
public Integer getConnected_at() {
|
||||
return connected_at;
|
||||
}
|
||||
|
||||
public void setConnected_at(Integer connected_at) {
|
||||
this.connected_at = connected_at;
|
||||
}
|
||||
|
||||
public String getReason() {
|
||||
return reason;
|
||||
}
|
||||
|
||||
public void setReason(String reason) {
|
||||
this.reason = reason;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.ruoyi.iot.model;
|
||||
|
||||
/**
|
||||
* 产品分类的Id和名称输出
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class NtpModel
|
||||
{
|
||||
private Long deviceSendTime;
|
||||
|
||||
private Long serverRecvTime;
|
||||
|
||||
private Long serverSendTime;
|
||||
|
||||
public Long getDeviceSendTime() {
|
||||
return deviceSendTime;
|
||||
}
|
||||
|
||||
public void setDeviceSendTime(Long deviceSendTime) {
|
||||
this.deviceSendTime = deviceSendTime;
|
||||
}
|
||||
|
||||
public Long getServerRecvTime() {
|
||||
return serverRecvTime;
|
||||
}
|
||||
|
||||
public void setServerRecvTime(Long serverRecvTime) {
|
||||
this.serverRecvTime = serverRecvTime;
|
||||
}
|
||||
|
||||
public Long getServerSendTime() {
|
||||
return serverSendTime;
|
||||
}
|
||||
|
||||
public void setServerSendTime(Long serverSendTime) {
|
||||
this.serverSendTime = serverSendTime;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
package com.ruoyi.iot.model;
|
||||
|
||||
public class RegisterUserInput {
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 用户密码
|
||||
*/
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 验证码
|
||||
*/
|
||||
private String code;
|
||||
|
||||
private String phonenumber;
|
||||
|
||||
/**
|
||||
* 唯一标识
|
||||
*/
|
||||
private String uuid = "";
|
||||
|
||||
public String getPhonenumber() {
|
||||
return phonenumber;
|
||||
}
|
||||
|
||||
public void setPhonenumber(String phonenumber) {
|
||||
this.phonenumber = phonenumber;
|
||||
}
|
||||
|
||||
public String getUsername()
|
||||
{
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username)
|
||||
{
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getPassword()
|
||||
{
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password)
|
||||
{
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getUuid()
|
||||
{
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(String uuid)
|
||||
{
|
||||
this.uuid = uuid;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.ruoyi.iot.model.ThingsModelItem;
|
||||
|
||||
public class ArrayModelOutput extends ThingsModelItemBase
|
||||
{
|
||||
private String arrayType;
|
||||
|
||||
public String getArrayType() {
|
||||
return arrayType;
|
||||
}
|
||||
|
||||
public void setArrayType(String arrayType) {
|
||||
this.arrayType = arrayType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.ruoyi.iot.model.ThingsModelItem;
|
||||
|
||||
public class BoolModelOutput extends ThingsModelItemBase
|
||||
{
|
||||
private String falseText;
|
||||
private String trueText;
|
||||
|
||||
public String getFalseText() {
|
||||
return falseText;
|
||||
}
|
||||
|
||||
public void setFalseText(String falseText) {
|
||||
this.falseText = falseText;
|
||||
}
|
||||
|
||||
public String getTrueText() {
|
||||
return trueText;
|
||||
}
|
||||
|
||||
public void setTrueText(String trueText) {
|
||||
this.trueText = trueText;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.ruoyi.iot.model.ThingsModelItem;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class DecimalModelOutput extends ThingsModelItemBase
|
||||
{
|
||||
private BigDecimal min;
|
||||
private BigDecimal max;
|
||||
private BigDecimal step;
|
||||
private String unit;
|
||||
|
||||
public BigDecimal getMin() {
|
||||
return min;
|
||||
}
|
||||
|
||||
public void setMin(BigDecimal min) {
|
||||
this.min = min;
|
||||
}
|
||||
|
||||
public BigDecimal getMax() {
|
||||
return max;
|
||||
}
|
||||
|
||||
public void setMax(BigDecimal max) {
|
||||
this.max = max;
|
||||
}
|
||||
|
||||
public BigDecimal getStep() {
|
||||
return step;
|
||||
}
|
||||
|
||||
public void setStep(BigDecimal step) {
|
||||
this.step = step;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.ruoyi.iot.model.ThingsModelItem;
|
||||
|
||||
public class EnumItemOutput
|
||||
{
|
||||
private String text;
|
||||
private String value;
|
||||
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.ruoyi.iot.model.ThingsModelItem;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class EnumModelOutput extends ThingsModelItemBase
|
||||
{
|
||||
private List<EnumItemOutput> enumList;
|
||||
|
||||
public List<EnumItemOutput> getEnumList() {
|
||||
return enumList;
|
||||
}
|
||||
|
||||
public void setEnumList(List<EnumItemOutput> enumList) {
|
||||
this.enumList = enumList;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.ruoyi.iot.model.ThingsModelItem;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class IntegerModelOutput extends ThingsModelItemBase
|
||||
{
|
||||
private BigDecimal min;
|
||||
private BigDecimal max;
|
||||
private BigDecimal step;
|
||||
private String unit;
|
||||
|
||||
public BigDecimal getMin() {
|
||||
return min;
|
||||
}
|
||||
|
||||
public void setMin(BigDecimal min) {
|
||||
this.min = min;
|
||||
}
|
||||
|
||||
public BigDecimal getMax() {
|
||||
return max;
|
||||
}
|
||||
|
||||
public void setMax(BigDecimal max) {
|
||||
this.max = max;
|
||||
}
|
||||
|
||||
public BigDecimal getStep() {
|
||||
return step;
|
||||
}
|
||||
|
||||
public void setStep(BigDecimal step) {
|
||||
this.step = step;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package com.ruoyi.iot.model.ThingsModelItem;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
public class ReadOnlyModelOutput extends ThingsModelItemBase
|
||||
{
|
||||
private BigDecimal min;
|
||||
private BigDecimal max;
|
||||
private BigDecimal step;
|
||||
private String unit;
|
||||
private String arrayType;
|
||||
private String falseText;
|
||||
private String trueText;
|
||||
private int maxLength;
|
||||
private List<EnumItemOutput> enumList;
|
||||
|
||||
public List<EnumItemOutput> getEnumList() {
|
||||
return enumList;
|
||||
}
|
||||
|
||||
public void setEnumList(List<EnumItemOutput> enumList) {
|
||||
this.enumList = enumList;
|
||||
}
|
||||
|
||||
public int getMaxLength() {
|
||||
return maxLength;
|
||||
}
|
||||
|
||||
public void setMaxLength(int maxLength) {
|
||||
this.maxLength = maxLength;
|
||||
}
|
||||
|
||||
public String getFalseText() {
|
||||
return falseText;
|
||||
}
|
||||
|
||||
public void setFalseText(String falseText) {
|
||||
this.falseText = falseText;
|
||||
}
|
||||
|
||||
public String getTrueText() {
|
||||
return trueText;
|
||||
}
|
||||
|
||||
public void setTrueText(String trueText) {
|
||||
this.trueText = trueText;
|
||||
}
|
||||
|
||||
public String getArrayType() {
|
||||
return arrayType;
|
||||
}
|
||||
|
||||
public void setArrayType(String arrayType) {
|
||||
this.arrayType = arrayType;
|
||||
}
|
||||
|
||||
public BigDecimal getMin() {
|
||||
return min;
|
||||
}
|
||||
|
||||
public void setMin(BigDecimal min) {
|
||||
this.min = min;
|
||||
}
|
||||
|
||||
public BigDecimal getMax() {
|
||||
return max;
|
||||
}
|
||||
|
||||
public void setMax(BigDecimal max) {
|
||||
this.max = max;
|
||||
}
|
||||
|
||||
public BigDecimal getStep() {
|
||||
return step;
|
||||
}
|
||||
|
||||
public void setStep(BigDecimal step) {
|
||||
this.step = step;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.ruoyi.iot.model.ThingsModelItem;
|
||||
|
||||
public class StringModelOutput extends ThingsModelItemBase
|
||||
{
|
||||
private int maxLength;
|
||||
|
||||
public int getMaxLength() {
|
||||
return maxLength;
|
||||
}
|
||||
|
||||
public void setMaxLength(int maxLength) {
|
||||
this.maxLength = maxLength;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.ruoyi.iot.model.ThingsModelItem;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
|
||||
public class ThingsModelItemBase
|
||||
{
|
||||
/** 物模型唯一标识符 */
|
||||
private String id;
|
||||
/** 物模型名称 */
|
||||
private String name;
|
||||
/** 物模型值 */
|
||||
private String value;
|
||||
/** 是否首页显示(0-否,1-是) */
|
||||
private Integer isTop;
|
||||
/** 是否实时监测(0-否,1-是) */
|
||||
private Integer isMonitor;
|
||||
/** 数据类型 */
|
||||
private String type;
|
||||
/** 影子值 */
|
||||
private String shadow;
|
||||
|
||||
public String getShadow() {
|
||||
return shadow;
|
||||
}
|
||||
|
||||
public void setShadow(String shadow) {
|
||||
this.shadow = shadow;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public Integer getIsTop() {
|
||||
return isTop;
|
||||
}
|
||||
|
||||
public void setIsTop(Integer isTop) {
|
||||
this.isTop = isTop;
|
||||
}
|
||||
|
||||
public Integer getIsMonitor() {
|
||||
return isMonitor;
|
||||
}
|
||||
|
||||
public void setIsMonitor(Integer isMonitor) {
|
||||
this.isMonitor = isMonitor;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.ruoyi.iot.model.ThingsModels;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品分类的Id和名称输出
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class EventDto
|
||||
{
|
||||
/** 物模型唯一标识符 */
|
||||
private String id;
|
||||
/** 物模型名称 */
|
||||
private String name;
|
||||
/** 数据定义 */
|
||||
private JSONObject datatype;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public JSONObject getDatatype() {
|
||||
return datatype;
|
||||
}
|
||||
|
||||
public void setDatatype(JSONObject datatype) {
|
||||
this.datatype = datatype;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.ruoyi.iot.model.ThingsModels;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品分类的Id和名称输出
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class FunctionDto
|
||||
{
|
||||
/** 物模型唯一标识符 */
|
||||
private String id;
|
||||
/** 物模型名称 */
|
||||
private String name;
|
||||
/** 是否首页显示(0-否,1-是) */
|
||||
private Integer isTop;
|
||||
/** 数据定义 */
|
||||
private JSONObject datatype;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getIsTop() {
|
||||
return isTop;
|
||||
}
|
||||
|
||||
public void setIsTop(Integer isTop) {
|
||||
this.isTop = isTop;
|
||||
}
|
||||
|
||||
public JSONObject getDatatype() {
|
||||
return datatype;
|
||||
}
|
||||
|
||||
public void setDatatype(JSONObject datatype) {
|
||||
this.datatype = datatype;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.ruoyi.iot.model.ThingsModels;
|
||||
|
||||
import org.apache.commons.math3.analysis.function.Identity;
|
||||
|
||||
/**
|
||||
* 物模型值的项
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class IdentityAndName
|
||||
{
|
||||
public IdentityAndName(){
|
||||
|
||||
}
|
||||
|
||||
public IdentityAndName(String id,String value){
|
||||
this.id=id;
|
||||
this.value=value;
|
||||
}
|
||||
|
||||
/** 物模型唯一标识符 */
|
||||
private String id;
|
||||
|
||||
/** 物模型值 */
|
||||
private String value;
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.ruoyi.iot.model.ThingsModels;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品分类的Id和名称输出
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class PropertyDto
|
||||
{
|
||||
/** 物模型唯一标识符 */
|
||||
private String id;
|
||||
/** 物模型名称 */
|
||||
private String name;
|
||||
/** 是否首页显示(0-否,1-是) */
|
||||
private Integer isTop;
|
||||
/** 是否实时监测(0-否,1-是) */
|
||||
private Integer isMonitor;
|
||||
/** 数据定义 */
|
||||
private JSONObject datatype;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getIsTop() {
|
||||
return isTop;
|
||||
}
|
||||
|
||||
public void setIsTop(Integer isTop) {
|
||||
this.isTop = isTop;
|
||||
}
|
||||
|
||||
public Integer getIsMonitor() {
|
||||
return isMonitor;
|
||||
}
|
||||
|
||||
public void setIsMonitor(Integer isMonitor) {
|
||||
this.isMonitor = isMonitor;
|
||||
}
|
||||
|
||||
public JSONObject getDatatype() {
|
||||
return datatype;
|
||||
}
|
||||
|
||||
public void setDatatype(JSONObject datatype) {
|
||||
this.datatype = datatype;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.ruoyi.iot.model.ThingsModels;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品分类的Id和名称输出
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class ThingsModelShadow
|
||||
{
|
||||
public ThingsModelShadow(){
|
||||
this.properties=new ArrayList<>();
|
||||
this.functions=new ArrayList<>();
|
||||
}
|
||||
|
||||
public ThingsModelShadow(List<IdentityAndName> properties, List<IdentityAndName> functions){
|
||||
this.properties=properties;
|
||||
this.functions=functions;
|
||||
}
|
||||
|
||||
/** 属性 */
|
||||
List<IdentityAndName> properties;
|
||||
|
||||
/** 功能 */
|
||||
List<IdentityAndName> functions;
|
||||
|
||||
public List<IdentityAndName> getProperties() {
|
||||
return properties;
|
||||
}
|
||||
|
||||
public void setProperties(List<IdentityAndName> properties) {
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
public List<IdentityAndName> getFunctions() {
|
||||
return functions;
|
||||
}
|
||||
|
||||
public void setFunctions(List<IdentityAndName> functions) {
|
||||
this.functions = functions;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.ruoyi.iot.model.ThingsModels;
|
||||
|
||||
/**
|
||||
* 物模型值的项
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class ThingsModelValueItem
|
||||
{
|
||||
/** 物模型唯一标识符 */
|
||||
private String id;
|
||||
|
||||
/** 物模型值 */
|
||||
private String value;
|
||||
|
||||
/** 影子值 **/
|
||||
private String shadow;
|
||||
|
||||
public String getShadow() {
|
||||
return shadow;
|
||||
}
|
||||
|
||||
public void setShadow(String shadow) {
|
||||
this.shadow = shadow;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,196 @@
|
||||
package com.ruoyi.iot.model.ThingsModels;
|
||||
|
||||
import org.springframework.data.redis.connection.DataType;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 物模型
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class ThingsModelValueItemDto
|
||||
{
|
||||
/** 物模型唯一标识符 */
|
||||
private String id;
|
||||
|
||||
/** 物模型名称 */
|
||||
private String name;
|
||||
|
||||
/** 物模型值 */
|
||||
private String value;
|
||||
|
||||
/** 是否首页显示(0-否,1-是) */
|
||||
private Integer isTop;
|
||||
|
||||
/** 是否实时监测(0-否,1-是) */
|
||||
private Integer isMonitor;
|
||||
|
||||
private DataType dataType;
|
||||
|
||||
public Integer getIsTop() {
|
||||
return isTop;
|
||||
}
|
||||
|
||||
public void setIsTop(Integer isTop) {
|
||||
this.isTop = isTop;
|
||||
}
|
||||
|
||||
public Integer getIsMonitor() {
|
||||
return isMonitor;
|
||||
}
|
||||
|
||||
public void setIsMonitor(Integer isMonitor) {
|
||||
this.isMonitor = isMonitor;
|
||||
}
|
||||
|
||||
public DataType getDataType() {
|
||||
return dataType;
|
||||
}
|
||||
|
||||
public void setDataType(DataType dataType) {
|
||||
this.dataType = dataType;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public static class DataType{
|
||||
private String type;
|
||||
private String falseText;
|
||||
private String trueText;
|
||||
private Integer maxLength;
|
||||
private String arrayType;
|
||||
private String unit;
|
||||
private BigDecimal min;
|
||||
private BigDecimal max;
|
||||
private BigDecimal step;
|
||||
private List<EnumItem> enumList;
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getFalseText() {
|
||||
return falseText;
|
||||
}
|
||||
|
||||
public void setFalseText(String falseText) {
|
||||
this.falseText = falseText;
|
||||
}
|
||||
|
||||
public String getTrueText() {
|
||||
return trueText;
|
||||
}
|
||||
|
||||
public void setTrueText(String trueText) {
|
||||
this.trueText = trueText;
|
||||
}
|
||||
|
||||
public Integer getMaxLength() {
|
||||
return maxLength;
|
||||
}
|
||||
|
||||
public void setMaxLength(Integer maxLength) {
|
||||
this.maxLength = maxLength;
|
||||
}
|
||||
|
||||
public String getArrayType() {
|
||||
return arrayType;
|
||||
}
|
||||
|
||||
public void setArrayType(String arrayType) {
|
||||
this.arrayType = arrayType;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public BigDecimal getMin() {
|
||||
return min;
|
||||
}
|
||||
|
||||
public void setMin(BigDecimal min) {
|
||||
this.min = min;
|
||||
}
|
||||
|
||||
public BigDecimal getMax() {
|
||||
return max;
|
||||
}
|
||||
|
||||
public void setMax(BigDecimal max) {
|
||||
this.max = max;
|
||||
}
|
||||
|
||||
public BigDecimal getStep() {
|
||||
return step;
|
||||
}
|
||||
|
||||
public void setStep(BigDecimal step) {
|
||||
this.step = step;
|
||||
}
|
||||
|
||||
public List<EnumItem> getEnumList() {
|
||||
return enumList;
|
||||
}
|
||||
|
||||
public void setEnumList(List<EnumItem> enumList) {
|
||||
this.enumList = enumList;
|
||||
}
|
||||
}
|
||||
|
||||
public static class EnumItem
|
||||
{
|
||||
private String text;
|
||||
private String value;
|
||||
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.ruoyi.iot.model.ThingsModels;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
/**
|
||||
* 物模型值的项
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class ThingsModelValueRemarkItem
|
||||
{
|
||||
/** 物模型唯一标识符 */
|
||||
private String id;
|
||||
|
||||
/** 物模型值 */
|
||||
private String value;
|
||||
|
||||
/** 备注 **/
|
||||
private String remark;
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.ruoyi.iot.model.ThingsModels;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备输入物模型值参数
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class ThingsModelValuesInput
|
||||
{
|
||||
/** 产品ID **/
|
||||
private Long productId;
|
||||
|
||||
private Long deviceId;
|
||||
|
||||
/** 设备ID **/
|
||||
private String deviceNumber;
|
||||
|
||||
/** 设备物模型值的字符串格式 **/
|
||||
private String stringValue;
|
||||
|
||||
/** 设备物模型值的集合 **/
|
||||
private List<ThingsModelValueRemarkItem> thingsModelValueRemarkItem;
|
||||
|
||||
public Long getDeviceId() {
|
||||
return deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(Long deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public Long getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Long productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getStringValue() {
|
||||
return stringValue;
|
||||
}
|
||||
|
||||
public void setStringValue(String stringValue) {
|
||||
this.stringValue = stringValue;
|
||||
}
|
||||
|
||||
public String getDeviceNumber() {
|
||||
return deviceNumber;
|
||||
}
|
||||
|
||||
public void setDeviceNumber(String deviceNumber) {
|
||||
this.deviceNumber = deviceNumber;
|
||||
}
|
||||
|
||||
public List<ThingsModelValueRemarkItem> getThingsModelValueRemarkItem() {
|
||||
return thingsModelValueRemarkItem;
|
||||
}
|
||||
|
||||
public void setThingsModelValueRemarkItem(List<ThingsModelValueRemarkItem> thingsModelValueRemarkItem) {
|
||||
this.thingsModelValueRemarkItem = thingsModelValueRemarkItem;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.ruoyi.iot.model.ThingsModels;
|
||||
|
||||
/**
|
||||
* 设备输入物模型值参数
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class ThingsModelValuesOutput
|
||||
{
|
||||
/** 产品ID **/
|
||||
private Long productId;
|
||||
|
||||
private String productName;
|
||||
|
||||
private Long deviceId;
|
||||
|
||||
private String deviceName;
|
||||
|
||||
private int status;
|
||||
|
||||
private int isShadow;
|
||||
|
||||
/** 设备ID **/
|
||||
private String serialNumber;
|
||||
|
||||
/** 设备物模型值 **/
|
||||
private String thingsModelValue;
|
||||
|
||||
public int getIsShadow() {
|
||||
return isShadow;
|
||||
}
|
||||
|
||||
public void setIsShadow(int isShadow) {
|
||||
this.isShadow = isShadow;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Long getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Long productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getProductName() {
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setProductName(String productName) {
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public Long getDeviceId() {
|
||||
return deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(Long deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getSerialNumber() {
|
||||
return serialNumber;
|
||||
}
|
||||
|
||||
public void setSerialNumber(String serialNumber) {
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
public String getThingsModelValue() {
|
||||
return thingsModelValue;
|
||||
}
|
||||
|
||||
public void setThingsModelValue(String thingsModelValue) {
|
||||
this.thingsModelValue = thingsModelValue;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.ruoyi.iot.model.ThingsModels;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品分类的Id和名称输出
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class ThingsModelsDto
|
||||
{
|
||||
public ThingsModelsDto(){
|
||||
properties=new ArrayList<>();
|
||||
functions=new ArrayList<>();
|
||||
events=new ArrayList<>();
|
||||
}
|
||||
|
||||
/** 属性 */
|
||||
private List<PropertyDto> properties;
|
||||
/** 功能 */
|
||||
private List<FunctionDto> functions;
|
||||
/** 事件 */
|
||||
private List<EventDto> events;
|
||||
|
||||
public List<PropertyDto> getProperties() {
|
||||
return properties;
|
||||
}
|
||||
|
||||
public void setProperties(List<PropertyDto> properties) {
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
public List<FunctionDto> getFunctions() {
|
||||
return functions;
|
||||
}
|
||||
|
||||
public void setFunctions(List<FunctionDto> functions) {
|
||||
this.functions = functions;
|
||||
}
|
||||
|
||||
public List<EventDto> getEvents() {
|
||||
return events;
|
||||
}
|
||||
|
||||
public void setEvents(List<EventDto> events) {
|
||||
this.events = events;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user