mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
更新
This commit is contained in:
108
springboot/fastbee-service/fastbee-iot-service/pom.xml
Normal file
108
springboot/fastbee-service/fastbee-iot-service/pom.xml
Normal file
@@ -0,0 +1,108 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>fastbee-service</artifactId>
|
||||
<groupId>com.fastbee</groupId>
|
||||
<version>3.8.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>fastbee-iot-service</artifactId>
|
||||
|
||||
<description>
|
||||
设备业务模块
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- 通用工具-->
|
||||
<dependency>
|
||||
<groupId>com.fastbee</groupId>
|
||||
<artifactId>fastbee-common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-annotations</artifactId>
|
||||
<version>1.6.2</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.velocity</groupId>
|
||||
<artifactId>velocity-engine-core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fastbee</groupId>
|
||||
<artifactId>fastbee-framework</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fastbee</groupId>
|
||||
<artifactId>fastbee-quartz</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-text</artifactId>
|
||||
<version>1.6</version>
|
||||
</dependency>
|
||||
<!-- oauth2-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.security.oauth</groupId>
|
||||
<artifactId>spring-security-oauth2</artifactId>
|
||||
<version>2.5.1.RELEASE</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
||||
</dependency>
|
||||
<!-- mqtt-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.paho</groupId>
|
||||
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
|
||||
<version>1.2.5</version>
|
||||
</dependency>
|
||||
<!--AES-->
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
<version>5.2.3.RELEASE</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 第三方登录模块-->
|
||||
<dependency>
|
||||
<groupId>me.zhyd.oauth</groupId>
|
||||
<artifactId>JustAuth</artifactId>
|
||||
<version>${justAuth.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 通用http接口模块-->
|
||||
<dependency>
|
||||
<groupId>com.dtflys.forest</groupId>
|
||||
<artifactId>forest-spring-boot-starter</artifactId>
|
||||
<version>${forest.version}</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- TDengine连接 START-->
|
||||
<dependency>
|
||||
<groupId>com.taosdata.jdbc</groupId>
|
||||
<artifactId>taos-jdbcdriver</artifactId>
|
||||
<version>2.0.38</version>
|
||||
</dependency>
|
||||
<!-- TDengine连接 END-->
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,134 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
|
||||
/**
|
||||
* 产品分类对象 iot_category
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@ApiModel(value = "Category", description = "产品分类对象 iot_category")
|
||||
public class Category extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 产品分类ID */
|
||||
@ApiModelProperty("产品分类ID")
|
||||
private Long categoryId;
|
||||
|
||||
/** 产品分类名称 */
|
||||
@ApiModelProperty("产品分类名称")
|
||||
@Excel(name = "产品分类名称")
|
||||
private String categoryName;
|
||||
|
||||
/** 租户ID */
|
||||
@ApiModelProperty("租户ID")
|
||||
@Excel(name = "租户ID")
|
||||
private Long tenantId;
|
||||
|
||||
/** 租户名称 */
|
||||
@ApiModelProperty("租户名称")
|
||||
@Excel(name = "租户名称")
|
||||
private String tenantName;
|
||||
|
||||
/** 是否系统通用(0-否,1-是) */
|
||||
@ApiModelProperty("是否系统通用(0-否,1-是)")
|
||||
@Excel(name = "是否系统通用", readConverterExp = "0=-否,1-是")
|
||||
private Integer isSys;
|
||||
|
||||
/** 显示顺序 */
|
||||
@ApiModelProperty("显示顺序")
|
||||
@Excel(name = "显示顺序")
|
||||
private Integer orderNum;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
@ApiModelProperty("删除标志(0代表存在 2代表删除)")
|
||||
private String delFlag;
|
||||
|
||||
public void setCategoryId(Long categoryId)
|
||||
{
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
public Long getCategoryId()
|
||||
{
|
||||
return categoryId;
|
||||
}
|
||||
public void setCategoryName(String categoryName)
|
||||
{
|
||||
this.categoryName = categoryName;
|
||||
}
|
||||
|
||||
public String getCategoryName()
|
||||
{
|
||||
return categoryName;
|
||||
}
|
||||
public void setTenantId(Long tenantId)
|
||||
{
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public Long getTenantId()
|
||||
{
|
||||
return tenantId;
|
||||
}
|
||||
public void setTenantName(String tenantName)
|
||||
{
|
||||
this.tenantName = tenantName;
|
||||
}
|
||||
|
||||
public String getTenantName()
|
||||
{
|
||||
return tenantName;
|
||||
}
|
||||
public void setIsSys(Integer isSys)
|
||||
{
|
||||
this.isSys = isSys;
|
||||
}
|
||||
public Integer getIsSys()
|
||||
{
|
||||
return isSys;
|
||||
}
|
||||
|
||||
public void setOrderNum(Integer orderNum)
|
||||
{
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
public Integer getOrderNum()
|
||||
{
|
||||
return orderNum;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("categoryId", getCategoryId())
|
||||
.append("categoryName", getCategoryName())
|
||||
.append("tenantId", getTenantId())
|
||||
.append("tenantName", getTenantName())
|
||||
.append("isSys", getIsSys())
|
||||
.append("orderNum", getOrderNum())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,473 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备对象 iot_device
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@ApiModel(value = "Device", description = "设备对象 iot_device")
|
||||
public class Device extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 设备ID */
|
||||
@ApiModelProperty("设备ID")
|
||||
private Long deviceId;
|
||||
|
||||
/** 设备名称 */
|
||||
@ApiModelProperty("设备名称")
|
||||
@Excel(name = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 产品ID */
|
||||
@ApiModelProperty("产品ID")
|
||||
@Excel(name = "产品ID")
|
||||
private Long productId;
|
||||
|
||||
/** 产品名称 */
|
||||
@ApiModelProperty("产品名称")
|
||||
@Excel(name = "产品名称")
|
||||
private String productName;
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty("用户ID")
|
||||
@Excel(name = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
/** 用户昵称 */
|
||||
@ApiModelProperty("用户昵称")
|
||||
@Excel(name = "用户昵称")
|
||||
private String userName;
|
||||
|
||||
/** 租户ID */
|
||||
@ApiModelProperty("租户ID")
|
||||
@Excel(name = "租户ID")
|
||||
private Long tenantId;
|
||||
|
||||
/** 租户名称 */
|
||||
@ApiModelProperty("租户名称")
|
||||
@Excel(name = "租户名称")
|
||||
private String tenantName;
|
||||
|
||||
/** 设备编号 */
|
||||
@ApiModelProperty("设备编号")
|
||||
@Excel(name = "设备编号")
|
||||
private String serialNumber;
|
||||
|
||||
/** 固件版本 */
|
||||
@ApiModelProperty("固件版本")
|
||||
@Excel(name = "固件版本")
|
||||
private BigDecimal firmwareVersion;
|
||||
|
||||
/** 设备类型(1-直连设备、2-网关设备、3-监控设备) */
|
||||
@ApiModelProperty("设备类型(1-直连设备、2-网关设备、3-监控设备)")
|
||||
private Integer deviceType;
|
||||
|
||||
/** 设备状态(1-未激活,2-禁用,3-在线,4-离线) */
|
||||
@ApiModelProperty("设备状态(1-未激活,2-禁用,3-在线,4-离线)")
|
||||
@Excel(name = "设备状态")
|
||||
private Integer status;
|
||||
|
||||
/** wifi信号强度(信号极好4格[-55— 0],信号好3格[-70— -55],信号一般2格[-85— -70],信号差1格[-100— -85]) */
|
||||
@ApiModelProperty("wifi信号强度(信号极好4格[-55— 0],信号好3格[-70— -55],信号一般2格[-85— -70],信号差1格[-100— -85])")
|
||||
@Excel(name = "wifi信号强度")
|
||||
private Integer rssi;
|
||||
|
||||
/** 设备影子 */
|
||||
@ApiModelProperty("是否启用设备影子(0=禁用,1=启用)")
|
||||
private Integer isShadow;
|
||||
|
||||
/** 设备所在地址 */
|
||||
@ApiModelProperty("设备所在地址")
|
||||
@Excel(name = "设备所在地址")
|
||||
private String networkAddress;
|
||||
|
||||
/** 设备入网IP */
|
||||
@ApiModelProperty("设备入网IP")
|
||||
@Excel(name = "设备入网IP")
|
||||
private String networkIp;
|
||||
|
||||
/** 设备经度 */
|
||||
@ApiModelProperty("设备经度")
|
||||
@Excel(name = "设备经度")
|
||||
private BigDecimal longitude;
|
||||
|
||||
/** 设备纬度 */
|
||||
@ApiModelProperty("设备纬度")
|
||||
@Excel(name = "设备纬度")
|
||||
private BigDecimal latitude;
|
||||
|
||||
/** 激活时间 */
|
||||
@ApiModelProperty("激活时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "激活时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date activeTime;
|
||||
|
||||
/** 子设备网关编号 */
|
||||
@ApiModelProperty("子设备网关编号")
|
||||
@Excel(name = "网关设备编号(子设备使用)")
|
||||
private String gwDevCode;
|
||||
|
||||
/** 物模型值 */
|
||||
@ApiModelProperty("物模型值")
|
||||
@Excel(name = "物模型")
|
||||
private String thingsModelValue;
|
||||
|
||||
/** 图片地址 */
|
||||
@ApiModelProperty("图片地址")
|
||||
private String imgUrl;
|
||||
|
||||
/** 是否自定义位置 **/
|
||||
@ApiModelProperty("定位方式(1=ip自动定位,2=设备定位,3=自定义)")
|
||||
private Integer locationWay;
|
||||
|
||||
/** 设备摘要 **/
|
||||
@ApiModelProperty("设备摘要")
|
||||
private String summary;
|
||||
|
||||
/** 分组ID,用于分组查询 **/
|
||||
@ApiModelProperty("分组ID,用于分组查询")
|
||||
private Long groupId;
|
||||
|
||||
/** 是否设备所有者,用于查询 **/
|
||||
@ApiModelProperty("是否设备所有者,用于查询")
|
||||
private Integer isOwner;
|
||||
/**子设备数量*/
|
||||
@ApiModelProperty("子设备数量")
|
||||
private Integer subDeviceCount;
|
||||
/**是否是模拟设备*/
|
||||
@ApiModelProperty("是否是模拟设备")
|
||||
private Integer isSimulate;
|
||||
/**子设备地址*/
|
||||
@ApiModelProperty("子设备地址")
|
||||
private Integer slaveId;
|
||||
/**设备传输协议*/
|
||||
@ApiModelProperty("设备传输协议")
|
||||
private String transport;
|
||||
|
||||
public String getTransport() {
|
||||
return transport;
|
||||
}
|
||||
|
||||
public void setTransport(String transport) {
|
||||
this.transport = transport;
|
||||
}
|
||||
|
||||
public Integer getSlaveId() {
|
||||
return slaveId;
|
||||
}
|
||||
|
||||
public void setSlaveId(Integer slaveId) {
|
||||
this.slaveId = slaveId;
|
||||
}
|
||||
|
||||
public Integer getIsSimulate() {
|
||||
return isSimulate;
|
||||
}
|
||||
|
||||
public void setIsSimulate(Integer isSimulate) {
|
||||
this.isSimulate = isSimulate;
|
||||
}
|
||||
|
||||
private List<Device> subDeviceList;
|
||||
|
||||
public List<Device> getSubDeviceList() {
|
||||
return subDeviceList;
|
||||
}
|
||||
|
||||
public void setSubDeviceList(List<Device> subDeviceList) {
|
||||
this.subDeviceList = subDeviceList;
|
||||
}
|
||||
|
||||
public Integer getSubDeviceCount() {
|
||||
return subDeviceCount;
|
||||
}
|
||||
|
||||
public void setSubDeviceCount(Integer subDeviceCount) {
|
||||
this.subDeviceCount = subDeviceCount;
|
||||
}
|
||||
|
||||
public String getGwDevCode() {
|
||||
return gwDevCode;
|
||||
}
|
||||
|
||||
public void setGwDevCode(String gwDevCode) {
|
||||
this.gwDevCode = gwDevCode;
|
||||
}
|
||||
|
||||
public Integer getLocationWay() {
|
||||
return locationWay;
|
||||
}
|
||||
|
||||
public void setLocationWay(Integer locationWay) {
|
||||
this.locationWay = locationWay;
|
||||
}
|
||||
|
||||
public Integer getIsOwner() {
|
||||
return isOwner;
|
||||
}
|
||||
|
||||
public void setIsOwner(Integer isOwner) {
|
||||
this.isOwner = isOwner;
|
||||
}
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
@ApiModelProperty("删除标志")
|
||||
private String delFlag;
|
||||
|
||||
public Long getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
|
||||
public void setGroupId(Long groupId) {
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
|
||||
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 static long getSerialVersionUID() {
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
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 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 setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
public void setDeviceType(Integer deviceType)
|
||||
{
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public Integer getDeviceType()
|
||||
{
|
||||
return deviceType;
|
||||
}
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
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 setNetworkAddress(String networkAddress)
|
||||
{
|
||||
this.networkAddress = networkAddress;
|
||||
}
|
||||
|
||||
public String getNetworkAddress()
|
||||
{
|
||||
return networkAddress;
|
||||
}
|
||||
public void setNetworkIp(String networkIp)
|
||||
{
|
||||
this.networkIp = networkIp;
|
||||
}
|
||||
|
||||
public String getNetworkIp()
|
||||
{
|
||||
return networkIp;
|
||||
}
|
||||
public void setLongitude(BigDecimal longitude)
|
||||
{
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public BigDecimal getLongitude()
|
||||
{
|
||||
return longitude;
|
||||
}
|
||||
public void setLatitude(BigDecimal latitude)
|
||||
{
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public BigDecimal getLatitude()
|
||||
{
|
||||
return latitude;
|
||||
}
|
||||
public void setActiveTime(Date activeTime)
|
||||
{
|
||||
this.activeTime = activeTime;
|
||||
}
|
||||
|
||||
public Date getActiveTime()
|
||||
{
|
||||
return activeTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("deviceId", getDeviceId())
|
||||
.append("deviceName", getDeviceName())
|
||||
.append("productId", getProductId())
|
||||
.append("productName", getProductName())
|
||||
.append("userId", getUserId())
|
||||
.append("userName", getUserName())
|
||||
.append("tenantId", getTenantId())
|
||||
.append("tenantName", getTenantName())
|
||||
.append("serialNumber", getSerialNumber())
|
||||
.append("firmwareVersion", getFirmwareVersion())
|
||||
.append("status", getStatus())
|
||||
.append("rssi", getRssi())
|
||||
.append("networkAddress", getNetworkAddress())
|
||||
.append("networkIp", getNetworkIp())
|
||||
.append("longitude", getLongitude())
|
||||
.append("latitude", getLatitude())
|
||||
.append("activeTime", getActiveTime())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 设备分组对象 iot_device_group
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@ApiModel(value = "DeviceGroup", description = "设备分组对象 iot_device_group")
|
||||
public class DeviceGroup
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 分组ID */
|
||||
@ApiModelProperty("分组ID")
|
||||
private Long groupId;
|
||||
|
||||
/** 设备ID */
|
||||
@ApiModelProperty("设备ID")
|
||||
private Long deviceId;
|
||||
|
||||
public Long getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
|
||||
public void setGroupId(Long groupId) {
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public Long getDeviceId() {
|
||||
return deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(Long deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,308 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.annotation.Excel.ColumnType;
|
||||
import com.fastbee.common.constant.ScheduleConstants;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
import com.fastbee.common.utils.StringUtils;
|
||||
import com.fastbee.quartz.util.CronUtils;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Size;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 设备定时任务
|
||||
*
|
||||
* @author kerwincui
|
||||
*/
|
||||
@ApiModel(value = "DeviceJob", description = "设备定时任务 iot_device_job")
|
||||
public class DeviceJob extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 任务ID */
|
||||
@ApiModelProperty("任务ID")
|
||||
@Excel(name = "任务序号", cellType = ColumnType.NUMERIC)
|
||||
private Long jobId;
|
||||
|
||||
/** 任务名称 */
|
||||
@ApiModelProperty("任务名称")
|
||||
@Excel(name = "任务名称")
|
||||
private String jobName;
|
||||
|
||||
/** 设备编号 */
|
||||
@ApiModelProperty("设备编号")
|
||||
@Excel(name = "设备编号")
|
||||
private String serialNumber;
|
||||
|
||||
/** 设备id */
|
||||
@ApiModelProperty("设备id")
|
||||
private Long deviceId;
|
||||
|
||||
/** 设备名称 */
|
||||
@ApiModelProperty("设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 执行动作 */
|
||||
@ApiModelProperty("执行动作")
|
||||
private String actions;
|
||||
|
||||
/** 告警触发器 */
|
||||
@ApiModelProperty("告警触发器")
|
||||
private String alertTrigger;
|
||||
|
||||
/** 任务组名 */
|
||||
@ApiModelProperty("任务组名")
|
||||
@Excel(name = "任务组名")
|
||||
private String jobGroup;
|
||||
|
||||
/** cron执行表达式 */
|
||||
@ApiModelProperty("cron执行表达式")
|
||||
@Excel(name = "执行表达式 ")
|
||||
private String cronExpression;
|
||||
|
||||
/** cron计划策略 */
|
||||
@ApiModelProperty(value = "cron执行表达式", notes = "0=默认,1=立即触发执行,2=触发一次执行,3=不触发立即执行")
|
||||
@Excel(name = "计划策略 ", readConverterExp = "0=默认,1=立即触发执行,2=触发一次执行,3=不触发立即执行")
|
||||
private String misfirePolicy = ScheduleConstants.MISFIRE_DEFAULT;
|
||||
|
||||
/** 是否并发执行(0允许 1禁止) */
|
||||
@ApiModelProperty(value = "是否并发执行", notes = "0=允许,1=禁止")
|
||||
@Excel(name = "并发执行", readConverterExp = "0=允许,1=禁止")
|
||||
private String concurrent;
|
||||
|
||||
/** 任务状态(0正常 1暂停) */
|
||||
@ApiModelProperty("任务状态(0正常 1暂停)")
|
||||
@Excel(name = "任务状态", readConverterExp = "0=正常,1=暂停")
|
||||
private String status;
|
||||
|
||||
/** 是否详细corn表达式 */
|
||||
@ApiModelProperty("是否详细corn表达式")
|
||||
private Integer isAdvance;
|
||||
|
||||
/** 定时类型(1=设备定时,2=设备告警,3=场景联动) */
|
||||
@ApiModelProperty(value = "定时类型", notes = "(1=设备定时,2=设备告警,3=场景联动)")
|
||||
@Excel(name = "定时类型", readConverterExp = "1==设备定时,2=设备告警,3=场景联动")
|
||||
private Integer jobType;
|
||||
|
||||
/** 产品ID */
|
||||
@ApiModelProperty("产品ID")
|
||||
@Excel(name = "产品ID")
|
||||
private Long productId;
|
||||
|
||||
/** 产品名称 */
|
||||
@ApiModelProperty("产品名称")
|
||||
@Excel(name = "产品名称")
|
||||
private String productName;
|
||||
|
||||
/** 场景联动ID */
|
||||
@ApiModelProperty("场景联动ID")
|
||||
@Excel(name = "场景联动ID")
|
||||
private Long sceneId;
|
||||
|
||||
/** 告警ID */
|
||||
@ApiModelProperty("告警ID")
|
||||
@Excel(name = "告警ID")
|
||||
private Long alertId;
|
||||
|
||||
public String getAlertTrigger() {
|
||||
return alertTrigger;
|
||||
}
|
||||
|
||||
public void setAlertTrigger(String alertTrigger) {
|
||||
this.alertTrigger = alertTrigger;
|
||||
}
|
||||
|
||||
public static long getSerialVersionUID() {
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
public String getSerialNumber() {
|
||||
return serialNumber;
|
||||
}
|
||||
|
||||
public void setSerialNumber(String serialNumber) {
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
public Integer getIsAdvance() {
|
||||
return isAdvance;
|
||||
}
|
||||
|
||||
public void setIsAdvance(Integer isAdvance) {
|
||||
this.isAdvance = isAdvance;
|
||||
}
|
||||
|
||||
public Integer getJobType() {
|
||||
return jobType;
|
||||
}
|
||||
|
||||
public void setJobType(Integer jobType) {
|
||||
this.jobType = jobType;
|
||||
}
|
||||
|
||||
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 getSceneId() {
|
||||
return sceneId;
|
||||
}
|
||||
|
||||
public void setSceneId(Long sceneId) {
|
||||
this.sceneId = sceneId;
|
||||
}
|
||||
|
||||
public Long getAlertId() {
|
||||
return alertId;
|
||||
}
|
||||
|
||||
public void setAlertId(Long alertId) {
|
||||
this.alertId = alertId;
|
||||
}
|
||||
|
||||
public Long getJobId()
|
||||
{
|
||||
return jobId;
|
||||
}
|
||||
|
||||
public void setJobId(Long jobId)
|
||||
{
|
||||
this.jobId = jobId;
|
||||
}
|
||||
|
||||
@NotBlank(message = "任务名称不能为空")
|
||||
@Size(min = 0, max = 64, message = "任务名称不能超过64个字符")
|
||||
public String getJobName()
|
||||
{
|
||||
return jobName;
|
||||
}
|
||||
|
||||
public void setJobName(String jobName)
|
||||
{
|
||||
this.jobName = jobName;
|
||||
}
|
||||
|
||||
public String getJobGroup()
|
||||
{
|
||||
return jobGroup;
|
||||
}
|
||||
|
||||
public void setJobGroup(String jobGroup)
|
||||
{
|
||||
this.jobGroup = jobGroup;
|
||||
}
|
||||
|
||||
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 getActions() {
|
||||
return actions;
|
||||
}
|
||||
|
||||
public void setActions(String actions) {
|
||||
this.actions = actions;
|
||||
}
|
||||
|
||||
@NotBlank(message = "Cron执行表达式不能为空")
|
||||
@Size(min = 0, max = 255, message = "Cron执行表达式不能超过255个字符")
|
||||
public String getCronExpression()
|
||||
{
|
||||
return cronExpression;
|
||||
}
|
||||
|
||||
public void setCronExpression(String cronExpression)
|
||||
{
|
||||
this.cronExpression = cronExpression;
|
||||
}
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
public Date getNextValidTime()
|
||||
{
|
||||
if (StringUtils.isNotEmpty(cronExpression))
|
||||
{
|
||||
return CronUtils.getNextExecution(cronExpression);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getMisfirePolicy()
|
||||
{
|
||||
return misfirePolicy;
|
||||
}
|
||||
|
||||
public void setMisfirePolicy(String misfirePolicy)
|
||||
{
|
||||
this.misfirePolicy = misfirePolicy;
|
||||
}
|
||||
|
||||
public String getConcurrent()
|
||||
{
|
||||
return concurrent;
|
||||
}
|
||||
|
||||
public void setConcurrent(String concurrent)
|
||||
{
|
||||
this.concurrent = concurrent;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("jobId", getJobId())
|
||||
.append("jobName", getJobName())
|
||||
.append("jobGroup", getJobGroup())
|
||||
.append("cronExpression", getCronExpression())
|
||||
.append("nextValidTime", getNextValidTime())
|
||||
.append("misfirePolicy", getMisfirePolicy())
|
||||
.append("concurrent", getConcurrent())
|
||||
.append("status", getStatus())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,474 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fastbee.iot.model.ThingsModelItem.*;
|
||||
import com.fastbee.iot.model.ThingsModels.ThingsModelValueItemDto;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备日志对象 iot_device_log
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-01-13
|
||||
*/
|
||||
@ApiModel(value = "DeviceLog", description = "设备日志对象 iot_device_log")
|
||||
public class DeviceLog extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Excel(name = "时间戳")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date ts;
|
||||
/** 设备日志ID */
|
||||
@ApiModelProperty("设备日志ID")
|
||||
private Long logId;
|
||||
|
||||
/** 类型(1=属性上报,2=事件上报,3=调用功能,4=设备升级,5=设备上线,6=设备离线) */
|
||||
@ApiModelProperty(value = "类型", notes = "1=属性上报,2=事件上报,3=调用功能,4=设备升级,5=设备上线,6=设备离线")
|
||||
@Excel(name = "类型", readConverterExp = "1=属性上报,2=事件上报,3=调用功能,4=设备升级,5=设备上线,6=设备离线")
|
||||
private Integer logType;
|
||||
|
||||
/** 日志值 */
|
||||
@ApiModelProperty("日志值")
|
||||
@Excel(name = "日志值")
|
||||
private String logValue;
|
||||
|
||||
/** 物模型名称 */
|
||||
@ApiModelProperty("物模型名称")
|
||||
@Excel(name = "物模型名称")
|
||||
private String modelName;
|
||||
|
||||
/** 设备ID */
|
||||
@ApiModelProperty("设备ID")
|
||||
@Excel(name = "设备ID")
|
||||
private Long deviceId;
|
||||
|
||||
/** 设备名称 */
|
||||
@ApiModelProperty("设备名称")
|
||||
@Excel(name = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 设备编号 */
|
||||
@ApiModelProperty("设备编号")
|
||||
@Excel(name = "设备编号")
|
||||
private String serialNumber;
|
||||
|
||||
/** 标识符 */
|
||||
@ApiModelProperty("标识符")
|
||||
@Excel(name = "标识符")
|
||||
private String identity;
|
||||
|
||||
/** 是否监测数据(1=是,0=否) */
|
||||
@ApiModelProperty("是否监测数据(1=是,0=否)")
|
||||
@Excel(name = "是否监测数据", readConverterExp = "1=是,0=否")
|
||||
private Integer isMonitor;
|
||||
|
||||
/** 模式 */
|
||||
@ApiModelProperty(value = "模式", notes = "1=影子模式,2=在线模式,3=其他")
|
||||
@Excel(name = "模式", readConverterExp = "1=影子模式,2=在线模式,3=其他")
|
||||
private Integer mode;
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty("用户ID")
|
||||
@Excel(name = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
/** 用户昵称 */
|
||||
@ApiModelProperty("用户昵称")
|
||||
@Excel(name = "用户昵称")
|
||||
private String userName;
|
||||
|
||||
/** 租户ID */
|
||||
@ApiModelProperty("租户ID")
|
||||
@Excel(name = "租户ID")
|
||||
private Long tenantId;
|
||||
|
||||
/** 租户名称 */
|
||||
@ApiModelProperty("租户名称")
|
||||
@Excel(name = "租户名称")
|
||||
private String tenantName;
|
||||
|
||||
/** 查询用的开始时间 */
|
||||
@ApiModelProperty("查询用的开始时间")
|
||||
private String beginTime;
|
||||
|
||||
/** 查询用的结束时间 */
|
||||
@ApiModelProperty("查询用的结束时间")
|
||||
private String endTime;
|
||||
|
||||
/** 查询的总数 */
|
||||
@ApiModelProperty("查询的总数")
|
||||
private int total;
|
||||
|
||||
/*消息ID,或消息流水号*/
|
||||
@ApiModelProperty("消息ID,或消息流水号")
|
||||
private String serNo;
|
||||
|
||||
private String specs;
|
||||
|
||||
private DataType dataType;
|
||||
|
||||
private Integer slaveId;
|
||||
/**
|
||||
* 计算公式
|
||||
*/
|
||||
private String formula;
|
||||
|
||||
private Integer isParams;
|
||||
|
||||
/*是否历史存储*/
|
||||
private Integer isHistory;
|
||||
|
||||
public Integer getIsHistory() {
|
||||
return isHistory;
|
||||
}
|
||||
|
||||
public void setIsHistory(Integer isHistory) {
|
||||
this.isHistory = isHistory;
|
||||
}
|
||||
|
||||
public Integer getIsParams() {
|
||||
return isParams;
|
||||
}
|
||||
|
||||
public void setIsParams(Integer isParams) {
|
||||
this.isParams = isParams;
|
||||
}
|
||||
|
||||
public String getFormula() {
|
||||
return formula;
|
||||
}
|
||||
|
||||
public void setFormula(String formula) {
|
||||
this.formula = formula;
|
||||
}
|
||||
|
||||
|
||||
public Integer getSlaveId() {
|
||||
return slaveId;
|
||||
}
|
||||
|
||||
public void setSlaveId(Integer slaveId) {
|
||||
this.slaveId = slaveId;
|
||||
}
|
||||
|
||||
public DataType getDataType() {
|
||||
return dataType;
|
||||
}
|
||||
|
||||
public void setDataType(DataType dataType) {
|
||||
this.dataType = dataType;
|
||||
}
|
||||
|
||||
public String getModelName() {
|
||||
return modelName;
|
||||
}
|
||||
|
||||
public void setModelName(String modelName) {
|
||||
this.modelName = modelName;
|
||||
}
|
||||
|
||||
public String getSpecs() {
|
||||
return specs;
|
||||
}
|
||||
|
||||
public void setSpecs(String specs) {
|
||||
this.specs = specs;
|
||||
}
|
||||
|
||||
public String getSerNo() {
|
||||
return serNo;
|
||||
}
|
||||
|
||||
public void setSerNo(String serNo) {
|
||||
this.serNo = serNo;
|
||||
}
|
||||
|
||||
public int getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(int total) {
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public String getBeginTime() {
|
||||
return beginTime;
|
||||
}
|
||||
|
||||
public void setBeginTime(String beginTime) {
|
||||
this.beginTime = beginTime;
|
||||
}
|
||||
|
||||
public String getEndTime() {
|
||||
return endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(String endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public Integer getMode() {
|
||||
return mode;
|
||||
}
|
||||
|
||||
public void setMode(Integer mode) {
|
||||
this.mode = mode;
|
||||
}
|
||||
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public Long getTenantId() {
|
||||
return tenantId;
|
||||
}
|
||||
|
||||
public void setTenantId(Long tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public String getTenantName() {
|
||||
return tenantName;
|
||||
}
|
||||
|
||||
public void setTenantName(String tenantName) {
|
||||
this.tenantName = tenantName;
|
||||
}
|
||||
|
||||
public Date getTs() {
|
||||
return ts;
|
||||
}
|
||||
|
||||
public void setTs(Date ts) {
|
||||
this.ts = ts;
|
||||
}
|
||||
|
||||
public String getSerialNumber() {
|
||||
return serialNumber;
|
||||
}
|
||||
|
||||
public void setSerialNumber(String serialNumber) {
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
public void setLogId(Long logId)
|
||||
{
|
||||
this.logId = logId;
|
||||
}
|
||||
|
||||
public Long getLogId()
|
||||
{
|
||||
return logId;
|
||||
}
|
||||
|
||||
public void setLogType(Integer logType)
|
||||
{
|
||||
this.logType = logType;
|
||||
}
|
||||
|
||||
public Integer getLogType()
|
||||
{
|
||||
return logType;
|
||||
}
|
||||
public void setLogValue(String logValue)
|
||||
{
|
||||
this.logValue = logValue;
|
||||
}
|
||||
|
||||
public String getLogValue()
|
||||
{
|
||||
return logValue;
|
||||
}
|
||||
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 setIdentity(String identity)
|
||||
{
|
||||
this.identity = identity;
|
||||
}
|
||||
|
||||
public String getIdentity()
|
||||
{
|
||||
return identity;
|
||||
}
|
||||
public void setIsMonitor(Integer isMonitor)
|
||||
{
|
||||
this.isMonitor = isMonitor;
|
||||
}
|
||||
|
||||
public Integer getIsMonitor()
|
||||
{
|
||||
return isMonitor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("logId", getLogId())
|
||||
.append("logType", getLogType())
|
||||
.append("logValue", getLogValue())
|
||||
.append("deviceId", getDeviceId())
|
||||
.append("deviceName", getDeviceName())
|
||||
.append("identity", getIdentity())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("isMonitor", getIsMonitor())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
|
||||
@ApiModel
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
@ApiModel
|
||||
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,167 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 设备用户对象 iot_device_user
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@ApiModel(value = "DeviceUser", description = "设备用户对象 iot_device_user")
|
||||
public class DeviceUser extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 固件ID */
|
||||
@ApiModelProperty("设备ID")
|
||||
private Long deviceId;
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty("用户ID")
|
||||
private Long userId;
|
||||
|
||||
/** 设备名称 */
|
||||
@ApiModelProperty("设备名称")
|
||||
@Excel(name = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 用户昵称 */
|
||||
@ApiModelProperty("用户昵称")
|
||||
@Excel(name = "用户昵称")
|
||||
private String userName;
|
||||
|
||||
/** 是否为设备所有者 */
|
||||
@ApiModelProperty(value = "是否为设备所有者", notes = "0=否,1=是")
|
||||
@Excel(name = "是否为设备所有者")
|
||||
private Integer isOwner;
|
||||
|
||||
/** 租户ID */
|
||||
@ApiModelProperty("租户ID")
|
||||
private Long tenantId;
|
||||
|
||||
/** 租户名称 */
|
||||
@ApiModelProperty("租户名称")
|
||||
private String tenantName;
|
||||
|
||||
/** 手机号码 */
|
||||
@ApiModelProperty("手机号码")
|
||||
private String phonenumber;
|
||||
|
||||
/** 分享用户设备权限 */
|
||||
@ApiModelProperty("物模型权限")
|
||||
private String perms;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
@ApiModelProperty("删除标志(0代表存在 2代表删除)")
|
||||
private String delFlag;
|
||||
|
||||
public String getPerms() {
|
||||
return perms;
|
||||
}
|
||||
|
||||
public void setPerms(String perms) {
|
||||
this.perms = perms;
|
||||
}
|
||||
|
||||
public String getPhonenumber() {
|
||||
return phonenumber;
|
||||
}
|
||||
|
||||
public void setPhonenumber(String phonenumber) {
|
||||
this.phonenumber = phonenumber;
|
||||
}
|
||||
|
||||
public Long getTenantId() {
|
||||
return tenantId;
|
||||
}
|
||||
|
||||
public void setTenantId(Long tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public String getTenantName() {
|
||||
return tenantName;
|
||||
}
|
||||
|
||||
public void setTenantName(String tenantName) {
|
||||
this.tenantName = tenantName;
|
||||
}
|
||||
|
||||
public void setDeviceId(Long deviceId)
|
||||
{
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public Long getDeviceId()
|
||||
{
|
||||
return deviceId;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
public void setDeviceName(String deviceName)
|
||||
{
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceName()
|
||||
{
|
||||
return deviceName;
|
||||
}
|
||||
public void setUserName(String userName)
|
||||
{
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getUserName()
|
||||
{
|
||||
return userName;
|
||||
}
|
||||
public void setIsOwner(Integer isOwner)
|
||||
{
|
||||
this.isOwner = isOwner;
|
||||
}
|
||||
|
||||
public Integer getIsOwner()
|
||||
{
|
||||
return isOwner;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("deviceId", getDeviceId())
|
||||
.append("userId", getUserId())
|
||||
.append("deviceName", getDeviceName())
|
||||
.append("userName", getUserName())
|
||||
.append("isOwner", getIsOwner())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,237 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* @author gsb
|
||||
* @date 2023/3/28 16:25
|
||||
*/
|
||||
@ApiModel(value = "EventLog", description = "事件日志对象 iot_event_log")
|
||||
public class EventLog extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 设备日志ID */
|
||||
@ApiModelProperty("设备日志ID")
|
||||
private Long logId;
|
||||
|
||||
/** 标识符 */
|
||||
@ApiModelProperty("标识符")
|
||||
@Excel(name = "标识符")
|
||||
private String identity;
|
||||
|
||||
/** 物模型名称 */
|
||||
@ApiModelProperty("物模型名称")
|
||||
@Excel(name = "物模型名称")
|
||||
private String modelName;
|
||||
|
||||
/** 类型(3=事件上报,5=设备上线,6=设备离线) */
|
||||
@ApiModelProperty(value = "类型", notes = "3==事件上报,5=设备上线,6=设备离线")
|
||||
@Excel(name = "类型", readConverterExp = "3==事件上报,5=设备上线,6=设备离线")
|
||||
private Integer logType;
|
||||
|
||||
/** 日志值 */
|
||||
@ApiModelProperty("日志值")
|
||||
@Excel(name = "日志值")
|
||||
private String logValue;
|
||||
|
||||
/** 设备ID */
|
||||
@ApiModelProperty("设备ID")
|
||||
@Excel(name = "设备ID")
|
||||
private Long deviceId;
|
||||
|
||||
/** 设备名称 */
|
||||
@ApiModelProperty("设备名称")
|
||||
@Excel(name = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 设备编号 */
|
||||
@ApiModelProperty("设备编号")
|
||||
@Excel(name = "设备编号")
|
||||
private String serialNumber;
|
||||
|
||||
/** 是否监测数据(1=是,0=否) */
|
||||
@ApiModelProperty(value = "是否监测数据", notes = "(1=是,0=否)")
|
||||
@Excel(name = "是否监测数据", readConverterExp = "1==是,0=否")
|
||||
private Integer isMonitor;
|
||||
|
||||
/** 模式(1=影子模式,2=在线模式,3=其他) */
|
||||
@ApiModelProperty(value = "模式", notes = "(1=影子模式,2=在线模式,3=其他)")
|
||||
@Excel(name = "模式(1=影子模式,2=在线模式,3=其他)")
|
||||
private Integer mode;
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty("用户ID")
|
||||
@Excel(name = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
/** 用户昵称 */
|
||||
@ApiModelProperty("用户昵称")
|
||||
@Excel(name = "用户昵称")
|
||||
private String userName;
|
||||
|
||||
/** 租户ID */
|
||||
@ApiModelProperty("租户ID")
|
||||
@Excel(name = "租户ID")
|
||||
private Long tenantId;
|
||||
|
||||
/** 租户名称 */
|
||||
@ApiModelProperty("租户名称")
|
||||
@Excel(name = "租户名称")
|
||||
private String tenantName;
|
||||
|
||||
public void setLogId(Long logId)
|
||||
{
|
||||
this.logId = logId;
|
||||
}
|
||||
|
||||
public Long getLogId()
|
||||
{
|
||||
return logId;
|
||||
}
|
||||
public void setIdentity(String identity)
|
||||
{
|
||||
this.identity = identity;
|
||||
}
|
||||
|
||||
public String getIdentity()
|
||||
{
|
||||
return identity;
|
||||
}
|
||||
public void setModelName(String modelName)
|
||||
{
|
||||
this.modelName = modelName;
|
||||
}
|
||||
|
||||
public String getModelName()
|
||||
{
|
||||
return modelName;
|
||||
}
|
||||
public void setLogType(Integer logType)
|
||||
{
|
||||
this.logType = logType;
|
||||
}
|
||||
|
||||
public Integer getLogType()
|
||||
{
|
||||
return logType;
|
||||
}
|
||||
public void setLogValue(String logValue)
|
||||
{
|
||||
this.logValue = logValue;
|
||||
}
|
||||
|
||||
public String getLogValue()
|
||||
{
|
||||
return logValue;
|
||||
}
|
||||
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 setSerialNumber(String serialNumber)
|
||||
{
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
public String getSerialNumber()
|
||||
{
|
||||
return serialNumber;
|
||||
}
|
||||
public void setIsMonitor(Integer isMonitor)
|
||||
{
|
||||
this.isMonitor = isMonitor;
|
||||
}
|
||||
|
||||
public Integer getIsMonitor()
|
||||
{
|
||||
return isMonitor;
|
||||
}
|
||||
public void setMode(Integer mode)
|
||||
{
|
||||
this.mode = mode;
|
||||
}
|
||||
|
||||
public Integer getMode()
|
||||
{
|
||||
return mode;
|
||||
}
|
||||
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 Long getTenantId()
|
||||
{
|
||||
return tenantId;
|
||||
}
|
||||
public void setTenantName(String tenantName)
|
||||
{
|
||||
this.tenantName = tenantName;
|
||||
}
|
||||
|
||||
public String getTenantName()
|
||||
{
|
||||
return tenantName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("logId", getLogId())
|
||||
.append("identity", getIdentity())
|
||||
.append("modelName", getModelName())
|
||||
.append("logType", getLogType())
|
||||
.append("logValue", getLogValue())
|
||||
.append("deviceId", getDeviceId())
|
||||
.append("deviceName", getDeviceName())
|
||||
.append("serialNumber", getSerialNumber())
|
||||
.append("isMonitor", getIsMonitor())
|
||||
.append("mode", getMode())
|
||||
.append("userId", getUserId())
|
||||
.append("userName", getUserName())
|
||||
.append("tenantId", getTenantId())
|
||||
.append("tenantName", getTenantName())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 设备服务下发日志对象 iot_function_log
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-10-22
|
||||
*/
|
||||
@ApiModel(value = "FunctionLog", description = "设备服务下发日志对象 iot_function_log")
|
||||
@Data
|
||||
public class FunctionLog
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 设备日志ID */
|
||||
@ApiModelProperty("设备日志ID")
|
||||
private Long id;
|
||||
|
||||
/** 标识符 */
|
||||
@ApiModelProperty("标识符")
|
||||
@Excel(name = "标识符")
|
||||
private String identify;
|
||||
|
||||
/** 仅用于查询时筛选条件 */
|
||||
private String prefixIdentify;
|
||||
|
||||
@ApiModelProperty("物模型名称")
|
||||
private String modelName;
|
||||
|
||||
|
||||
/** 类型(1=服务下发,2=属性获取,3.OTA升级) */
|
||||
@ApiModelProperty(value = "类型", notes = "(1=服务下发,2=属性获取,3.OTA升级)")
|
||||
@Excel(name = "类型", readConverterExp = "1==服务下发,2=属性获取,3.OTA升级")
|
||||
private Integer funType;
|
||||
|
||||
/** 日志值 */
|
||||
@ApiModelProperty("日志值")
|
||||
@Excel(name = "日志值")
|
||||
private String funValue;
|
||||
/**
|
||||
* 显示值
|
||||
*/
|
||||
@ApiModelProperty("显示值")
|
||||
private String showValue;
|
||||
|
||||
/** 消息id */
|
||||
@ApiModelProperty("消息id")
|
||||
@Excel(name = "消息id")
|
||||
private String messageId;
|
||||
|
||||
/** 设备名称 */
|
||||
@ApiModelProperty("设备名称")
|
||||
@Excel(name = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 设备编号 */
|
||||
@ApiModelProperty("设备编号")
|
||||
@Excel(name = "设备编号")
|
||||
private String serialNumber;
|
||||
|
||||
/** 模式(1=影子模式,2=在线模式,3=其他) */
|
||||
@ApiModelProperty(value = "模式", notes = "(1=影子模式,2=在线模式,3=其他)")
|
||||
@Excel(name = "模式(1=影子模式,2=在线模式,3=其他)")
|
||||
private Integer mode;
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty("用户ID")
|
||||
@Excel(name = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
/** 下发结果描述 */
|
||||
@ApiModelProperty("下发结果描述")
|
||||
@Excel(name = "下发结果描述")
|
||||
private String resultMsg;
|
||||
|
||||
/** 下发结果代码 */
|
||||
@ApiModelProperty("下发结果代码")
|
||||
@Excel(name = "下发结果代码")
|
||||
private Integer resultCode;
|
||||
|
||||
/**
|
||||
* 设备回复时间
|
||||
*/
|
||||
@ApiModelProperty("设备回复时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date replyTime;
|
||||
|
||||
/** 创建者 */
|
||||
@ApiModelProperty("创建者")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@ApiModelProperty("创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime;
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date beginTime;
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date endTime;
|
||||
private List<Long> list;
|
||||
/** 备注 */
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 设备分组对象 iot_group
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@ApiModel(value = "Group", description = "设备分组对象 iot_group")
|
||||
public class Group extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 分组ID */
|
||||
@ApiModelProperty("分组ID")
|
||||
private Long groupId;
|
||||
|
||||
/** 分组名称 */
|
||||
@ApiModelProperty("分组名称")
|
||||
@Excel(name = "分组名称")
|
||||
private String groupName;
|
||||
|
||||
/** 分组排序 */
|
||||
@ApiModelProperty("分组排序")
|
||||
@Excel(name = "分组排序")
|
||||
private Long groupOrder;
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty("用户ID")
|
||||
@Excel(name = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
/** 用户昵称 */
|
||||
@ApiModelProperty("用户昵称")
|
||||
@Excel(name = "用户昵称")
|
||||
private String userName;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
@ApiModelProperty("删除标志")
|
||||
private String delFlag;
|
||||
|
||||
public void setGroupId(Long groupId)
|
||||
{
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public Long getGroupId()
|
||||
{
|
||||
return groupId;
|
||||
}
|
||||
public void setGroupName(String groupName)
|
||||
{
|
||||
this.groupName = groupName;
|
||||
}
|
||||
|
||||
public String getGroupName()
|
||||
{
|
||||
return groupName;
|
||||
}
|
||||
public void setGroupOrder(Long groupOrder)
|
||||
{
|
||||
this.groupOrder = groupOrder;
|
||||
}
|
||||
|
||||
public Long getGroupOrder()
|
||||
{
|
||||
return groupOrder;
|
||||
}
|
||||
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 setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("groupId", getGroupId())
|
||||
.append("groupName", getGroupName())
|
||||
.append("groupOrder", getGroupOrder())
|
||||
.append("userId", getUserId())
|
||||
.append("userName", getUserName())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,195 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 新闻资讯对象 news
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-04-09
|
||||
*/
|
||||
@ApiModel(value = "News", description = "新闻资讯对象 news")
|
||||
public class News extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 新闻ID */
|
||||
@ApiModelProperty("新闻ID")
|
||||
private Long newsId;
|
||||
|
||||
/** 标题 */
|
||||
@ApiModelProperty("标题")
|
||||
@Excel(name = "标题")
|
||||
private String title;
|
||||
|
||||
/** 内容 */
|
||||
@ApiModelProperty("内容")
|
||||
@Excel(name = "内容")
|
||||
private String content;
|
||||
|
||||
/** 图片 */
|
||||
@ApiModelProperty("图片")
|
||||
@Excel(name = "图片")
|
||||
private String imgUrl;
|
||||
|
||||
/** 置顶 */
|
||||
@ApiModelProperty("是否置顶")
|
||||
@Excel(name = "置顶")
|
||||
private Integer isTop;
|
||||
|
||||
/** 广告 */
|
||||
@ApiModelProperty("广告")
|
||||
@Excel(name = "广告")
|
||||
private Integer isBanner;
|
||||
|
||||
/** 分类ID */
|
||||
@ApiModelProperty("分类ID")
|
||||
@Excel(name = "分类ID")
|
||||
private Long categoryId;
|
||||
|
||||
/** 分类名称 */
|
||||
@ApiModelProperty("分类名称")
|
||||
@Excel(name = "分类名称")
|
||||
private String categoryName;
|
||||
|
||||
/** 发布 */
|
||||
@ApiModelProperty("新闻状态(0-未发布,1-已发布)")
|
||||
@Excel(name = "发布")
|
||||
private Integer status;
|
||||
|
||||
/** 作者 */
|
||||
@ApiModelProperty("作者")
|
||||
@Excel(name = "作者")
|
||||
private String author;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
@ApiModelProperty("删除标志")
|
||||
private String delFlag;
|
||||
|
||||
public void setNewsId(Long newsId)
|
||||
{
|
||||
this.newsId = newsId;
|
||||
}
|
||||
|
||||
public Long getNewsId()
|
||||
{
|
||||
return newsId;
|
||||
}
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
public void setImgUrl(String imgUrl)
|
||||
{
|
||||
this.imgUrl = imgUrl;
|
||||
}
|
||||
|
||||
public String getImgUrl()
|
||||
{
|
||||
return imgUrl;
|
||||
}
|
||||
public void setIsTop(Integer isTop)
|
||||
{
|
||||
this.isTop = isTop;
|
||||
}
|
||||
|
||||
public Integer getIsTop()
|
||||
{
|
||||
return isTop;
|
||||
}
|
||||
public void setIsBanner(Integer isBanner)
|
||||
{
|
||||
this.isBanner = isBanner;
|
||||
}
|
||||
|
||||
public Integer getIsBanner()
|
||||
{
|
||||
return isBanner;
|
||||
}
|
||||
public void setCategoryId(Long categoryId)
|
||||
{
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
public Long getCategoryId()
|
||||
{
|
||||
return categoryId;
|
||||
}
|
||||
public void setCategoryName(String categoryName)
|
||||
{
|
||||
this.categoryName = categoryName;
|
||||
}
|
||||
|
||||
public String getCategoryName()
|
||||
{
|
||||
return categoryName;
|
||||
}
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setAuthor(String author)
|
||||
{
|
||||
this.author = author;
|
||||
}
|
||||
|
||||
public String getAuthor()
|
||||
{
|
||||
return author;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("newsId", getNewsId())
|
||||
.append("title", getTitle())
|
||||
.append("content", getContent())
|
||||
.append("imgUrl", getImgUrl())
|
||||
.append("isTop", getIsTop())
|
||||
.append("isBanner", getIsBanner())
|
||||
.append("categoryId", getCategoryId())
|
||||
.append("categoryName", getCategoryName())
|
||||
.append("status", getStatus())
|
||||
.append("author", getAuthor())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 新闻分类对象 news_category
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-04-09
|
||||
*/
|
||||
@ApiModel(value = "NewsCategory", description = "新闻分类对象 news_category")
|
||||
public class NewsCategory extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 分类ID */
|
||||
@ApiModelProperty("分类ID")
|
||||
@Excel(name = "分类ID")
|
||||
private Long categoryId;
|
||||
|
||||
/** 分类名字 */
|
||||
@ApiModelProperty("分类名字")
|
||||
@Excel(name = "分类名字")
|
||||
private String categoryName;
|
||||
|
||||
/** 显示顺序 */
|
||||
@ApiModelProperty("显示顺序")
|
||||
@Excel(name = "显示顺序")
|
||||
private Integer orderNum;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
@ApiModelProperty("删除标志")
|
||||
private String delFlag;
|
||||
|
||||
public void setCategoryId(Long categoryId)
|
||||
{
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
public Long getCategoryId()
|
||||
{
|
||||
return categoryId;
|
||||
}
|
||||
public void setCategoryName(String categoryName)
|
||||
{
|
||||
this.categoryName = categoryName;
|
||||
}
|
||||
|
||||
public String getCategoryName()
|
||||
{
|
||||
return categoryName;
|
||||
}
|
||||
public void setOrderNum(Integer orderNum)
|
||||
{
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public Integer getOrderNum()
|
||||
{
|
||||
return orderNum;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("categoryId", getCategoryId())
|
||||
.append("categoryName", getCategoryName())
|
||||
.append("orderNum", getOrderNum())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,206 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 云云对接对象 oauth_client_details
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-02-07
|
||||
*/
|
||||
@ApiModel(value = "OauthClientDetails", description = "云云对接对象 oauth_client_details")
|
||||
public class OauthClientDetails extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 客户端ID */
|
||||
@ApiModelProperty("客户端ID")
|
||||
@Excel(name = "客户端ID")
|
||||
private String clientId;
|
||||
|
||||
/** 资源 */
|
||||
@ApiModelProperty("资源")
|
||||
@Excel(name = "资源")
|
||||
private String resourceIds;
|
||||
|
||||
/** 客户端秘钥 */
|
||||
@ApiModelProperty("客户端秘钥")
|
||||
private String clientSecret;
|
||||
|
||||
/** 权限范围 */
|
||||
@ApiModelProperty("权限范围")
|
||||
@Excel(name = "权限范围")
|
||||
private String scope;
|
||||
|
||||
/** 授权模式 */
|
||||
@ApiModelProperty("授权模式")
|
||||
@Excel(name = "授权模式")
|
||||
private String authorizedGrantTypes;
|
||||
|
||||
/** 回调地址 */
|
||||
@ApiModelProperty("回调地址")
|
||||
@Excel(name = "回调地址")
|
||||
private String webServerRedirectUri;
|
||||
|
||||
/** 权限 */
|
||||
@ApiModelProperty("权限")
|
||||
@Excel(name = "权限")
|
||||
private String authorities;
|
||||
|
||||
/** access token有效时间 */
|
||||
@ApiModelProperty("access token有效时间")
|
||||
@Excel(name = "access token有效时间")
|
||||
private Long accessTokenValidity;
|
||||
|
||||
/** refresh token有效时间 */
|
||||
@ApiModelProperty("refresh token有效时间")
|
||||
@Excel(name = "refresh token有效时间")
|
||||
private Long refreshTokenValidity;
|
||||
|
||||
/** 预留的字段 */
|
||||
@ApiModelProperty("预留的字段")
|
||||
@Excel(name = "预留的字段")
|
||||
private String additionalInformation;
|
||||
|
||||
/** 自动授权 */
|
||||
@ApiModelProperty("自动授权")
|
||||
@Excel(name = "自动授权")
|
||||
private String autoapprove;
|
||||
|
||||
/** 平台 */
|
||||
@ApiModelProperty("平台")
|
||||
@Excel(name = "平台")
|
||||
private Integer type;
|
||||
|
||||
public void setClientId(String clientId)
|
||||
{
|
||||
this.clientId = clientId;
|
||||
}
|
||||
|
||||
public String getClientId()
|
||||
{
|
||||
return clientId;
|
||||
}
|
||||
public void setResourceIds(String resourceIds)
|
||||
{
|
||||
this.resourceIds = resourceIds;
|
||||
}
|
||||
|
||||
public String getResourceIds()
|
||||
{
|
||||
return resourceIds;
|
||||
}
|
||||
public void setClientSecret(String clientSecret)
|
||||
{
|
||||
this.clientSecret = clientSecret;
|
||||
}
|
||||
|
||||
public String getClientSecret()
|
||||
{
|
||||
return clientSecret;
|
||||
}
|
||||
public void setScope(String scope)
|
||||
{
|
||||
this.scope = scope;
|
||||
}
|
||||
|
||||
public String getScope()
|
||||
{
|
||||
return scope;
|
||||
}
|
||||
public void setAuthorizedGrantTypes(String authorizedGrantTypes)
|
||||
{
|
||||
this.authorizedGrantTypes = authorizedGrantTypes;
|
||||
}
|
||||
|
||||
public String getAuthorizedGrantTypes()
|
||||
{
|
||||
return authorizedGrantTypes;
|
||||
}
|
||||
public void setWebServerRedirectUri(String webServerRedirectUri)
|
||||
{
|
||||
this.webServerRedirectUri = webServerRedirectUri;
|
||||
}
|
||||
|
||||
public String getWebServerRedirectUri()
|
||||
{
|
||||
return webServerRedirectUri;
|
||||
}
|
||||
public void setAuthorities(String authorities)
|
||||
{
|
||||
this.authorities = authorities;
|
||||
}
|
||||
|
||||
public String getAuthorities()
|
||||
{
|
||||
return authorities;
|
||||
}
|
||||
public void setAccessTokenValidity(Long accessTokenValidity)
|
||||
{
|
||||
this.accessTokenValidity = accessTokenValidity;
|
||||
}
|
||||
|
||||
public Long getAccessTokenValidity()
|
||||
{
|
||||
return accessTokenValidity;
|
||||
}
|
||||
public void setRefreshTokenValidity(Long refreshTokenValidity)
|
||||
{
|
||||
this.refreshTokenValidity = refreshTokenValidity;
|
||||
}
|
||||
|
||||
public Long getRefreshTokenValidity()
|
||||
{
|
||||
return refreshTokenValidity;
|
||||
}
|
||||
public void setAdditionalInformation(String additionalInformation)
|
||||
{
|
||||
this.additionalInformation = additionalInformation;
|
||||
}
|
||||
|
||||
public String getAdditionalInformation()
|
||||
{
|
||||
return additionalInformation;
|
||||
}
|
||||
public void setAutoapprove(String autoapprove)
|
||||
{
|
||||
this.autoapprove = autoapprove;
|
||||
}
|
||||
|
||||
public String getAutoapprove()
|
||||
{
|
||||
return autoapprove;
|
||||
}
|
||||
public void setType(Integer type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("clientId", getClientId())
|
||||
.append("resourceIds", getResourceIds())
|
||||
.append("clientSecret", getClientSecret())
|
||||
.append("scope", getScope())
|
||||
.append("authorizedGrantTypes", getAuthorizedGrantTypes())
|
||||
.append("webServerRedirectUri", getWebServerRedirectUri())
|
||||
.append("authorities", getAuthorities())
|
||||
.append("accessTokenValidity", getAccessTokenValidity())
|
||||
.append("refreshTokenValidity", getRefreshTokenValidity())
|
||||
.append("additionalInformation", getAdditionalInformation())
|
||||
.append("autoapprove", getAutoapprove())
|
||||
.append("type", getType())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,318 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 产品对象 iot_product
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@ApiModel(value = "Product", description = "产品对象 iot_product")
|
||||
public class Product extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 产品ID */
|
||||
@ApiModelProperty("产品ID")
|
||||
private Long productId;
|
||||
|
||||
/** 产品名称 */
|
||||
@ApiModelProperty("产品名称")
|
||||
@Excel(name = "产品名称")
|
||||
private String productName;
|
||||
|
||||
/** 产品分类ID */
|
||||
@ApiModelProperty("产品分类ID")
|
||||
@Excel(name = "产品分类ID")
|
||||
private Long categoryId;
|
||||
|
||||
/** 产品分类名称 */
|
||||
@ApiModelProperty("产品分类名称")
|
||||
@Excel(name = "产品分类名称")
|
||||
private String categoryName;
|
||||
|
||||
/** 租户ID */
|
||||
@ApiModelProperty("租户ID")
|
||||
@Excel(name = "租户ID")
|
||||
private Long tenantId;
|
||||
|
||||
/** 租户名称 */
|
||||
@ApiModelProperty("租户名称")
|
||||
@Excel(name = "租户名称")
|
||||
private String tenantName;
|
||||
|
||||
/** 是否系统通用(0-否,1-是) */
|
||||
@ApiModelProperty(value = "是否系统通用", notes = "(0-否,1-是)")
|
||||
@Excel(name = "是否系统通用", readConverterExp = "0=-否,1-是")
|
||||
private Integer isSys;
|
||||
|
||||
/** 是否启用授权码(0-否,1-是) */
|
||||
@ApiModelProperty(value = "是否启用授权码", notes = "(0-否,1-是)")
|
||||
@Excel(name = "是否启用授权码", readConverterExp = "0=-否,1-是")
|
||||
private Integer isAuthorize;
|
||||
|
||||
/** mqtt账号 */
|
||||
@ApiModelProperty("mqtt账号")
|
||||
private String mqttAccount;
|
||||
|
||||
/** mqtt密码 */
|
||||
@ApiModelProperty("mqtt密码")
|
||||
private String mqttPassword;
|
||||
|
||||
/** 产品秘钥 */
|
||||
@ApiModelProperty("产品秘钥")
|
||||
private String mqttSecret;
|
||||
|
||||
/*产品协议编号*/
|
||||
@ApiModelProperty("产品协议编号")
|
||||
private String protocolCode;
|
||||
|
||||
/*产品支持的传输协议,多个的选一个即可*/
|
||||
@ApiModelProperty("产品支持的传输协议,多个的选一个即可")
|
||||
private String transport;
|
||||
|
||||
public String getTransport() {
|
||||
return transport;
|
||||
}
|
||||
|
||||
public void setTransport(String transport) {
|
||||
this.transport = transport;
|
||||
}
|
||||
|
||||
public String getProtocolCode() {
|
||||
return protocolCode;
|
||||
}
|
||||
|
||||
public void setProtocolCode(String protocolCode) {
|
||||
this.protocolCode = protocolCode;
|
||||
}
|
||||
|
||||
public String getMqttSecret() {
|
||||
return mqttSecret;
|
||||
}
|
||||
|
||||
public void setMqttSecret(String mqttSecret) {
|
||||
this.mqttSecret = mqttSecret;
|
||||
}
|
||||
|
||||
/** 状态(1-未发布,2-已发布,不能修改) */
|
||||
@ApiModelProperty(value = "状态", notes = "(1-未发布,2-已发布,不能修改)")
|
||||
@Excel(name = "状态", readConverterExp = "1==未发布,2=已发布,不能修改")
|
||||
private Integer status;
|
||||
|
||||
/** 设备类型(1-直连设备、2-网关子设备、3-网关设备) */
|
||||
@ApiModelProperty(value = "设备类型", notes = "(1-直连设备、2-网关子设备、3-网关设备)")
|
||||
@Excel(name = "设备类型", readConverterExp = "1=直连设备、2=网关设备、3=监控设备")
|
||||
private Integer deviceType;
|
||||
|
||||
/** 联网方式(1=-wifi、2-蜂窝(2G/3G/4G/5G)、3-以太网、4-其他) */
|
||||
@ApiModelProperty(value = "联网方式", notes = "(1=-wifi、2-蜂窝(2G/3G/4G/5G)、3-以太网、4-其他)")
|
||||
@Excel(name = "联网方式", readConverterExp = "1=-wifi、2=蜂窝(2G/3G/4G/5G)、3=以太网、4=其他")
|
||||
private Integer networkMethod;
|
||||
|
||||
/** 认证方式(1-账号密码、2-证书、3-Http) */
|
||||
@ApiModelProperty(value = "认证方式", notes = "(1-账号密码、2-证书、3-Http)")
|
||||
@Excel(name = "认证方式", readConverterExp = "1=账号密码、2=证书、3=Http")
|
||||
private Integer vertificateMethod;
|
||||
|
||||
/** 图片地址 */
|
||||
@ApiModelProperty("图片地址")
|
||||
private String imgUrl;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
@ApiModelProperty(value = "删除标志", notes = "(0代表存在 2代表删除)")
|
||||
private String delFlag;
|
||||
|
||||
/** 物模型Json **/
|
||||
@ApiModelProperty("物模型Json")
|
||||
private String thingsModelsJson;
|
||||
|
||||
/**采集点模板id*/
|
||||
@ApiModelProperty("采集点模板id")
|
||||
private Long templateId;
|
||||
|
||||
public Long getTemplateId() {
|
||||
return templateId;
|
||||
}
|
||||
|
||||
public void setTemplateId(Long templateId) {
|
||||
this.templateId = templateId;
|
||||
}
|
||||
|
||||
public String getThingsModelsJson() {
|
||||
return thingsModelsJson;
|
||||
}
|
||||
|
||||
public void setThingsModelsJson(String thingsModelsJson) {
|
||||
this.thingsModelsJson = thingsModelsJson;
|
||||
}
|
||||
|
||||
public String getImgUrl() {
|
||||
return imgUrl;
|
||||
}
|
||||
|
||||
public void setImgUrl(String imgUrl) {
|
||||
this.imgUrl = imgUrl;
|
||||
}
|
||||
|
||||
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 setCategoryId(Long categoryId)
|
||||
{
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
public Long getCategoryId()
|
||||
{
|
||||
return categoryId;
|
||||
}
|
||||
public void setCategoryName(String categoryName)
|
||||
{
|
||||
this.categoryName = categoryName;
|
||||
}
|
||||
|
||||
public String getCategoryName()
|
||||
{
|
||||
return categoryName;
|
||||
}
|
||||
public void setTenantId(Long tenantId)
|
||||
{
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public Long getTenantId()
|
||||
{
|
||||
return tenantId;
|
||||
}
|
||||
|
||||
public void setTenantName(String tenantName)
|
||||
{
|
||||
this.tenantName = tenantName;
|
||||
}
|
||||
public String getTenantName()
|
||||
{
|
||||
return tenantName;
|
||||
}
|
||||
|
||||
public void setIsSys(Integer isSys)
|
||||
{
|
||||
this.isSys = isSys;
|
||||
}
|
||||
public Integer getIsSys()
|
||||
{
|
||||
return isSys;
|
||||
}
|
||||
|
||||
public void setIsAuthorize(Integer isAuthorize) {this.isAuthorize = isAuthorize;}
|
||||
public Integer getIsAuthorize() {return isAuthorize;}
|
||||
|
||||
public void setMqttAccount(String mqttAccount)
|
||||
{
|
||||
this.mqttAccount = mqttAccount;
|
||||
}
|
||||
public String getMqttAccount()
|
||||
{
|
||||
return mqttAccount;
|
||||
}
|
||||
|
||||
public void setMqttPassword(String mqttPassword)
|
||||
{
|
||||
this.mqttPassword = mqttPassword;
|
||||
}
|
||||
public String getMqttPassword()
|
||||
{
|
||||
return mqttPassword;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setDeviceType(Integer deviceType)
|
||||
{
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public Integer getDeviceType()
|
||||
{
|
||||
return deviceType;
|
||||
}
|
||||
public void setNetworkMethod(Integer networkMethod)
|
||||
{
|
||||
this.networkMethod = networkMethod;
|
||||
}
|
||||
|
||||
public Integer getNetworkMethod()
|
||||
{
|
||||
return networkMethod;
|
||||
}
|
||||
public void setVertificateMethod(Integer vertificateMethod)
|
||||
{
|
||||
this.vertificateMethod = vertificateMethod;
|
||||
}
|
||||
|
||||
public Integer getVertificateMethod()
|
||||
{
|
||||
return vertificateMethod;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("productId", getProductId())
|
||||
.append("productName", getProductName())
|
||||
.append("categoryId", getCategoryId())
|
||||
.append("categoryName", getCategoryName())
|
||||
.append("tenantId", getTenantId())
|
||||
.append("tenantName", getTenantName())
|
||||
.append("isSys", getIsSys())
|
||||
.append("isAuthorize", getIsAuthorize())
|
||||
.append("status", getStatus())
|
||||
.append("deviceType", getDeviceType())
|
||||
.append("networkMethod", getNetworkMethod())
|
||||
.append("vertificateMethod", getVertificateMethod())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 产品授权码对象 iot_product_authorize
|
||||
*
|
||||
* @author kami
|
||||
* @date 2022-04-11
|
||||
*/
|
||||
@ApiModel(value = "ProductAuthorize", description = "产品授权码对象 iot_product_authorize")
|
||||
public class ProductAuthorize extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 授权码ID */
|
||||
@ApiModelProperty("授权码ID")
|
||||
private Long authorizeId;
|
||||
|
||||
/** 授权码 */
|
||||
@ApiModelProperty("授权码")
|
||||
@Excel(name = "授权码")
|
||||
private String authorizeCode;
|
||||
|
||||
/** 产品ID */
|
||||
@ApiModelProperty("产品ID")
|
||||
@Excel(name = "产品ID")
|
||||
private Long productId;
|
||||
|
||||
/** 设备ID */
|
||||
@ApiModelProperty("设备ID")
|
||||
@Excel(name = "设备ID")
|
||||
private Long deviceId;
|
||||
|
||||
/** 设备编号 */
|
||||
@ApiModelProperty("设备编号")
|
||||
@Excel(name = "设备编号")
|
||||
private String serialNumber;
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty("用户ID")
|
||||
@Excel(name = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
/** 用户名称 */
|
||||
@ApiModelProperty("用户名称")
|
||||
@Excel(name = "用户名称")
|
||||
private String userName;
|
||||
|
||||
/** 状态(1-未发布,2-已发布,不能修改) */
|
||||
@ApiModelProperty(value = "状态", notes = "(1-未发布,2-已发布,不能修改)")
|
||||
@Excel(name = "状态", readConverterExp = "1=未使用,2=已使用")
|
||||
private Integer status;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
@ApiModelProperty("删除标志")
|
||||
private String delFlag;
|
||||
|
||||
public ProductAuthorize() {
|
||||
}
|
||||
|
||||
public ProductAuthorize(String authorizeCode, Long productId) {
|
||||
this.authorizeCode = authorizeCode;
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setAuthorizeId(Long authorizeId)
|
||||
{
|
||||
this.authorizeId = authorizeId;
|
||||
}
|
||||
|
||||
public Long getAuthorizeId()
|
||||
{
|
||||
return authorizeId;
|
||||
}
|
||||
public void setAuthorizeCode(String authorizeCode)
|
||||
{
|
||||
this.authorizeCode = authorizeCode;
|
||||
}
|
||||
|
||||
public String getAuthorizeCode()
|
||||
{
|
||||
return authorizeCode;
|
||||
}
|
||||
public void setProductId(Long productId)
|
||||
{
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public Long getProductId()
|
||||
{
|
||||
return productId;
|
||||
}
|
||||
public void setDeviceId(Long deviceId)
|
||||
{
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public Long getDeviceId()
|
||||
{
|
||||
return deviceId;
|
||||
}
|
||||
public void setSerialNumber(String serialNumber)
|
||||
{
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
public String getSerialNumber()
|
||||
{
|
||||
return serialNumber;
|
||||
}
|
||||
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 setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("authorizeId", getAuthorizeId())
|
||||
.append("authorizeCode", getAuthorizeCode())
|
||||
.append("productId", getProductId())
|
||||
.append("deviceId", getDeviceId())
|
||||
.append("serialNumber", getSerialNumber())
|
||||
.append("userId", getUserId())
|
||||
.append("userName", getUserName())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 协议管理model
|
||||
* @author gsb
|
||||
* @date 2022/10/19 15:35
|
||||
*/
|
||||
@ApiModel(value = "Protocol", description = "协议管理对象 iot_protocol")
|
||||
@Data
|
||||
public class Protocol {
|
||||
|
||||
@ApiModelProperty("主键ID")
|
||||
private Long id;
|
||||
/*协议编码*/
|
||||
@ApiModelProperty("协议编码")
|
||||
private String protocolCode;
|
||||
/*协议名称*/
|
||||
@ApiModelProperty("协议名称")
|
||||
private String protocolName;
|
||||
/*协议jar包,js包 c程序上传地址*/
|
||||
@ApiModelProperty("协议jar包,js包 c程序上传地址")
|
||||
private String protocolFileUrl;
|
||||
/*协议类型 0:未知 1:jar 2:js 3:C*/
|
||||
@ApiModelProperty("协议类型 0:未知 1:jar 2:js 3:C")
|
||||
private Integer protocolType;
|
||||
/*协议文件摘要(文件的md5)*/
|
||||
@ApiModelProperty("协议文件摘要(文件的md5)")
|
||||
private String jarSign;
|
||||
/*创建时间*/
|
||||
@ApiModelProperty("创建时间")
|
||||
private Date createTime;
|
||||
/*更新时间*/
|
||||
@ApiModelProperty("更新时间")
|
||||
private Date updateTime;
|
||||
/*0:草稿 1:启用 2:停用*/
|
||||
@ApiModelProperty("0:草稿 1:启用 2:停用")
|
||||
private Integer protocolStatus;
|
||||
/*'0:正常 1:删除*/
|
||||
@ApiModelProperty("'0:正常 1:删除")
|
||||
private Integer delFlag;
|
||||
}
|
||||
@@ -0,0 +1,189 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 第三方登录平台控制对象 iot_social_platform
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-04-11
|
||||
*/
|
||||
@ApiModel(value = "SocialPlatform", description = "第三方登录平台控制对象 iot_social_platform")
|
||||
public class SocialPlatform extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 第三方登录平台主键
|
||||
*/
|
||||
@ApiModelProperty("第三方登录平台主键")
|
||||
private Long socialPlatformId;
|
||||
|
||||
/**
|
||||
* 第三方登录平台
|
||||
*/
|
||||
@ApiModelProperty("第三方登录平台")
|
||||
@Excel(name = "第三方登录平台")
|
||||
private String platform;
|
||||
|
||||
/**
|
||||
* 0、内部上线 1、上线 2、下线
|
||||
*/
|
||||
@ApiModelProperty("0、内部上线 1、上线 2、下线")
|
||||
@Excel(name = "0、内部上线 1、上线 2、下线")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 第三方平台申请Id
|
||||
*/
|
||||
@ApiModelProperty("第三方平台申请Id")
|
||||
@Excel(name = "第三方平台申请Id")
|
||||
private String clientId;
|
||||
|
||||
/**
|
||||
* 第三方平台密钥
|
||||
*/
|
||||
@ApiModelProperty("第三方平台密钥")
|
||||
@Excel(name = "第三方平台密钥")
|
||||
private String secretKey;
|
||||
|
||||
/**
|
||||
* 用户认证后跳转地址
|
||||
*/
|
||||
@ApiModelProperty("用户认证后跳转地址")
|
||||
@Excel(name = "用户认证后跳转地址")
|
||||
private String redirectUri;
|
||||
|
||||
/**
|
||||
* 删除标记位(0代表存在,2代表删除)
|
||||
*/
|
||||
@ApiModelProperty("删除标记位(0代表存在,2代表删除)")
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* 绑定注册登录uri
|
||||
*/
|
||||
@ApiModelProperty("绑定注册登录uri")
|
||||
@Excel(name = "绑定注册登录uri")
|
||||
private String bindUri;
|
||||
|
||||
/**
|
||||
* 跳转登录uri
|
||||
*/
|
||||
@ApiModelProperty("跳转登录uri")
|
||||
@Excel(name = "跳转登录uri")
|
||||
private String redirectLoginUri;
|
||||
|
||||
/**
|
||||
* 错误提示uri
|
||||
*/
|
||||
@ApiModelProperty("错误提示uri")
|
||||
@Excel(name = "错误提示uri")
|
||||
private String errorMsgUri;
|
||||
|
||||
public Long getSocialPlatformId() {
|
||||
return socialPlatformId;
|
||||
}
|
||||
|
||||
public void setSocialPlatformId(Long socialPlatformId) {
|
||||
this.socialPlatformId = socialPlatformId;
|
||||
}
|
||||
|
||||
public String getPlatform() {
|
||||
return platform;
|
||||
}
|
||||
|
||||
public void setPlatform(String platform) {
|
||||
this.platform = platform;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getClientId() {
|
||||
return clientId;
|
||||
}
|
||||
|
||||
public void setClientId(String clientId) {
|
||||
this.clientId = clientId;
|
||||
}
|
||||
|
||||
public String getSecretKey() {
|
||||
return secretKey;
|
||||
}
|
||||
|
||||
public void setSecretKey(String secretKey) {
|
||||
this.secretKey = secretKey;
|
||||
}
|
||||
|
||||
public String getRedirectUri() {
|
||||
return redirectUri;
|
||||
}
|
||||
|
||||
public void setRedirectUri(String redirectUri) {
|
||||
this.redirectUri = redirectUri;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getBindUri() {
|
||||
return bindUri;
|
||||
}
|
||||
|
||||
public void setBindUri(String bindUri) {
|
||||
this.bindUri = bindUri;
|
||||
}
|
||||
|
||||
public String getRedirectLoginUri() {
|
||||
return redirectLoginUri;
|
||||
}
|
||||
|
||||
public void setRedirectLoginUri(String redirectLoginUri) {
|
||||
this.redirectLoginUri = redirectLoginUri;
|
||||
}
|
||||
|
||||
public String getErrorMsgUri() {
|
||||
return errorMsgUri;
|
||||
}
|
||||
|
||||
public void setErrorMsgUri(String errorMsgUri) {
|
||||
this.errorMsgUri = errorMsgUri;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("socialPlatformId", getSocialPlatformId())
|
||||
.append("platform", getPlatform())
|
||||
.append("status", getStatus())
|
||||
.append("clientId", getClientId())
|
||||
.append("secretKey", getSecretKey())
|
||||
.append("redirectUri", getRedirectUri())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("remark", getRemark())
|
||||
.append("bindUri", getBindUri())
|
||||
.append("redirectLoginUri", getRedirectLoginUri())
|
||||
.append("errorMsgUri", getErrorMsgUri())
|
||||
.toString();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 用户第三方用户信息对象 iot_social_user
|
||||
*
|
||||
* @author json
|
||||
* @date 2022-04-18
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "SocialUser", description = "用户第三方用户信息对象 iot_social_user")
|
||||
@Accessors(chain = true)
|
||||
@Data
|
||||
public class SocialUser extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 第三方系统用户表主键 */
|
||||
@ApiModelProperty("第三方系统用户表主键")
|
||||
private Long socialUserId;
|
||||
|
||||
/** 第三方系统的唯一ID */
|
||||
@ApiModelProperty("第三方系统的唯一ID")
|
||||
@Excel(name = "第三方系统的唯一ID")
|
||||
private String uuid;
|
||||
|
||||
/** 第三方用户来源 */
|
||||
@ApiModelProperty("第三方用户来源")
|
||||
@Excel(name = "第三方用户来源")
|
||||
private String source;
|
||||
|
||||
/** 用户的授权令牌 */
|
||||
@ApiModelProperty("用户的授权令牌")
|
||||
@Excel(name = "用户的授权令牌")
|
||||
private String accessToken;
|
||||
|
||||
/** 第三方用户的授权令牌的有效期(部分平台可能没有) */
|
||||
@ApiModelProperty(value = "第三方用户的授权令牌的有效期", notes = "(部分平台可能没有)")
|
||||
@Excel(name = "第三方用户的授权令牌的有效期", readConverterExp = "部=分平台可能没有")
|
||||
private Long expireIn;
|
||||
|
||||
/** 刷新令牌(部分平台可能没有) */
|
||||
@ApiModelProperty(value = "刷新令牌", notes = "(部分平台可能没有)")
|
||||
@Excel(name = "刷新令牌(部分平台可能没有)")
|
||||
private String refreshToken;
|
||||
|
||||
/** 第三方用户的 open id(部分平台可能没有) */
|
||||
@ApiModelProperty(value = "第三方用户的 open id", notes = "(部分平台可能没有)")
|
||||
@Excel(name = "第三方用户的 open id", readConverterExp = "部=分平台可能没有")
|
||||
private String openId;
|
||||
|
||||
/** 第三方用户的 ID(部分平台可能没有) */
|
||||
@ApiModelProperty(value = "第三方用户的 ID", notes = "(部分平台可能没有)")
|
||||
@Excel(name = "第三方用户的 ID(部分平台可能没有)")
|
||||
private String uid;
|
||||
|
||||
/** 个别平台的授权信息(部分平台可能没有) */
|
||||
@ApiModelProperty(value = "个别平台的授权信息", notes = "(部分平台可能没有)")
|
||||
@Excel(name = "个别平台的授权信息", readConverterExp = "部=分平台可能没有")
|
||||
private String accessCode;
|
||||
|
||||
/** 第三方用户的 union id(部分平台可能没有) */
|
||||
@ApiModelProperty(value = "第三方用户的 union id", notes = "(部分平台可能没有)")
|
||||
@Excel(name = "第三方用户的 union id(部分平台可能没有)")
|
||||
private String unionId;
|
||||
|
||||
/** 第三方用户授予的权限(部分平台可能没有) */
|
||||
@ApiModelProperty(value = "第三方用户授予的权限", notes = "(部分平台可能没有)")
|
||||
@Excel(name = "第三方用户授予的权限(部分平台可能没有)")
|
||||
private String scope;
|
||||
|
||||
/** 个别平台的授权信息(部分平台可能没有) */
|
||||
@ApiModelProperty(value = "个别平台的授权信息", notes = "(部分平台可能没有)")
|
||||
@Excel(name = "个别平台的授权信息", readConverterExp = "部=分平台可能没有")
|
||||
private String tokenType;
|
||||
|
||||
/** id token(部分平台可能没有) */
|
||||
@ApiModelProperty(value = "id token", notes = "(部分平台可能没有)")
|
||||
@Excel(name = "id token", readConverterExp = "部=分平台可能没有")
|
||||
private String idToken;
|
||||
|
||||
/** 小米平台用户的附带属性(部分平台可能没有) */
|
||||
@ApiModelProperty(value = "小米平台用户的附带属性", notes = "(部分平台可能没有)")
|
||||
@Excel(name = "小米平台用户的附带属性", readConverterExp = "部=分平台可能没有")
|
||||
private String macAlgorithm;
|
||||
|
||||
/** 小米平台用户的附带属性(部分平台可能没有) */
|
||||
@ApiModelProperty(value = "小米平台用户的附带属性", notes = "(部分平台可能没有) ")
|
||||
@Excel(name = "小米平台用户的附带属性(部分平台可能没有)")
|
||||
private String macKey;
|
||||
|
||||
/** 用户的授权code(部分平台可能没有) */
|
||||
@ApiModelProperty(value = "用户的授权code", notes = "(部分平台可能没有)")
|
||||
@Excel(name = "用户的授权code", readConverterExp = "部=分平台可能没有")
|
||||
private String code;
|
||||
|
||||
/** Twitter平台用户的附带属性(部分平台可能没有) */
|
||||
@ApiModelProperty(value = "Twitter平台用户的附带属性", notes = "(部分平台可能没有) ")
|
||||
@Excel(name = "Twitter平台用户的附带属性(部分平台可能没有)")
|
||||
private String oauthToken;
|
||||
|
||||
/** Twitter平台用户的附带属性(部分平台可能没有) */
|
||||
@ApiModelProperty(value = "Twitter平台用户的附带属性", notes = "(部分平台可能没有)")
|
||||
@Excel(name = "Twitter平台用户的附带属性(部分平台可能没有)")
|
||||
private String oauthTokenSecret;
|
||||
|
||||
/** 删除标记位(0代表存在,2代表删除) */
|
||||
@ApiModelProperty("删除标记位")
|
||||
private String delFlag;
|
||||
|
||||
/** 绑定状态(0:未绑定,1:绑定) */
|
||||
@ApiModelProperty(value = "绑定状态", notes = "(0:未绑定,1:绑定)")
|
||||
@Excel(name = "绑定状态(0:未绑定,1:绑定)")
|
||||
private String status;
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty("用户ID")
|
||||
@Excel(name = "用户ID")
|
||||
private Long sysUserId;
|
||||
|
||||
/** 用户名 */
|
||||
@ApiModelProperty("用户名")
|
||||
@Excel(name = "用户名")
|
||||
private String username;
|
||||
|
||||
/** 用户昵称 */
|
||||
@ApiModelProperty("用户昵称")
|
||||
@Excel(name = "用户昵称")
|
||||
private String nickname;
|
||||
|
||||
/** 用户头像 */
|
||||
@ApiModelProperty("用户头像")
|
||||
@Excel(name = "用户头像")
|
||||
private String avatar;
|
||||
|
||||
/** 用户性别 */
|
||||
@ApiModelProperty("用户性别")
|
||||
@Excel(name = "用户性别")
|
||||
private Integer gender;
|
||||
/** 三方登录具体来源 */
|
||||
@ApiModelProperty("三方登录具体来源")
|
||||
@Excel(name = "三方登录具体来源")
|
||||
private String sourceClient;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("socialUserId", getSocialUserId())
|
||||
.append("uuid", getUuid())
|
||||
.append("source", getSource())
|
||||
.append("accessToken", getAccessToken())
|
||||
.append("expireIn", getExpireIn())
|
||||
.append("refreshToken", getRefreshToken())
|
||||
.append("openId", getOpenId())
|
||||
.append("uid", getUid())
|
||||
.append("accessCode", getAccessCode())
|
||||
.append("unionId", getUnionId())
|
||||
.append("scope", getScope())
|
||||
.append("tokenType", getTokenType())
|
||||
.append("idToken", getIdToken())
|
||||
.append("macAlgorithm", getMacAlgorithm())
|
||||
.append("macKey", getMacKey())
|
||||
.append("code", getCode())
|
||||
.append("oauthToken", getOauthToken())
|
||||
.append("oauthTokenSecret", getOauthTokenSecret())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("status", getStatus())
|
||||
.append("sysUserId", getSysUserId())
|
||||
.append("username", getUsername())
|
||||
.append("nickname", getNickname())
|
||||
.append("avatar", getAvatar())
|
||||
.append("gender", getGender())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,452 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 物模型对象 iot_things_model
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2023-01-14
|
||||
*/
|
||||
@ApiModel(value = "ThingsModel", description = "物模型对象 iot_things_model")
|
||||
public class ThingsModel extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 物模型ID */
|
||||
@ApiModelProperty("物模型ID")
|
||||
private Long modelId;
|
||||
|
||||
/** 物模型名称 */
|
||||
@ApiModelProperty("物模型名称")
|
||||
@Excel(name = "物模型名称" ,prompt = "必填")
|
||||
private String modelName;
|
||||
|
||||
/** 产品ID */
|
||||
@ApiModelProperty("产品ID")
|
||||
private Long productId;
|
||||
|
||||
/** 产品名称 */
|
||||
@ApiModelProperty("产品名称")
|
||||
private String productName;
|
||||
|
||||
/** 租户ID */
|
||||
@ApiModelProperty("租户ID")
|
||||
private Long tenantId;
|
||||
|
||||
/** 租户名称 */
|
||||
@ApiModelProperty("租户名称")
|
||||
private String tenantName;
|
||||
|
||||
/** 标识符,产品下唯一 */
|
||||
@ApiModelProperty("标识符,产品下唯一")
|
||||
@Excel(name = "标识符",prompt = "modbus不填默认为寄存器地址")
|
||||
private String identifier;
|
||||
|
||||
/** 模型类别(1-属性,2-功能,3-事件) */
|
||||
@ApiModelProperty(value = "模型类别", notes = "(1-属性,2-功能,3-事件)")
|
||||
@Excel(name = "模型类别", readConverterExp = "1=属性,2=功能,3=事件,4=属性和功能",
|
||||
prompt ="1=属性,2-功能,3-事件")
|
||||
private Integer type;
|
||||
|
||||
/** 从机id */
|
||||
@ApiModelProperty("从机id")
|
||||
private Integer tempSlaveId;
|
||||
|
||||
/** 寄存器地址 */
|
||||
@ApiModelProperty("寄存器地址")
|
||||
@Excel(name = "寄存器地址" , prompt = "可填写10进制或16进制,16带H,例如:0020H")
|
||||
private String regStr;
|
||||
|
||||
/** 计算公式 */
|
||||
@ApiModelProperty("计算公式")
|
||||
@Excel(name = "计算公式",prompt = "选填,例如:%s*10,%s是占位符")
|
||||
private String formula;
|
||||
|
||||
/** 数据定义 */
|
||||
//@Excel(name = "数据定义")
|
||||
@ApiModelProperty("数据定义")
|
||||
private String specs;
|
||||
|
||||
|
||||
/** 控制公式 */
|
||||
@ApiModelProperty("控制公式")
|
||||
@Excel(name = "控制公式",prompt = "选填,例如:%s*10,%s是占位符")
|
||||
private String reverseFormula;
|
||||
|
||||
/** 寄存器地址值 */
|
||||
@ApiModelProperty("寄存器地址值")
|
||||
private Integer regAddr;
|
||||
|
||||
|
||||
/** 是否图表显示(0-否,1-是) */
|
||||
@ApiModelProperty(value = "是否图表显示", notes = "(0-否,1-是)")
|
||||
@Excel(name = "是否图表显示", readConverterExp = "0=否,1=是")
|
||||
private Integer isChart;
|
||||
|
||||
/** 是否历史存储(0-否,1-是) */
|
||||
@ApiModelProperty(value = "是否历史存储", notes = "(0-否,1-是)")
|
||||
@Excel(name = "是否历史存储", readConverterExp = "0=否,1=是")
|
||||
private Integer isHistory;
|
||||
|
||||
/** 是否实时监测(0-否,1-是) */
|
||||
@ApiModelProperty(value = "是否实时监测", notes = "(0-否,1-是) ")
|
||||
@Excel(name = "是否实时监测", readConverterExp = "0=否,1=是")
|
||||
private Integer isMonitor;
|
||||
|
||||
/** 是否分享设备权限(0-否,1-是) */
|
||||
@ApiModelProperty(value = "是否分享设备权限", notes = "(0-否,1-是) ")
|
||||
@Excel(name = "是否分享设备权限", readConverterExp = "0=否,1=是")
|
||||
private Integer isSharePerm;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
@ApiModelProperty("删除标志")
|
||||
private String delFlag;
|
||||
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 数值类型 1.数值 2.选项 */
|
||||
@ApiModelProperty(value = "数值类型", notes = "1.数值 2.选项")
|
||||
@Excel(name = "解析类型" ,prompt = "解析类型 INT,INT16,UINT16")
|
||||
private Integer valueType;
|
||||
|
||||
/** 数据类型(integer、decimal、string、bool、array、enum) */
|
||||
@ApiModelProperty(value = "数据类型", notes = "(integer、decimal、string、bool、array、enum)")
|
||||
@Excel(name = "数据类型", prompt = "integer、decimal、string、bool、array、enum")
|
||||
private String datatype;
|
||||
|
||||
@Excel(name = "有效值范围")
|
||||
private String limitValue;
|
||||
|
||||
/** 位定义选项 */
|
||||
@ApiModelProperty("位定义选项")
|
||||
@Excel(name = "位定义选项")
|
||||
private String bitOption;
|
||||
|
||||
/** 是否只读数据(0-否,1-是) */
|
||||
@ApiModelProperty(value = "是否只读数据", notes = "(0-否,1-是)")
|
||||
@Excel(name = "是否只读", readConverterExp = "0=否,1=是",prompt = "0=否,1=是")
|
||||
private Integer isReadonly;
|
||||
|
||||
@ApiModelProperty("是否是计算参数,默认否")
|
||||
@Excel(name = "是否是计算参数,默认否",readConverterExp = "0=否,1=是")
|
||||
private Integer isParams;
|
||||
|
||||
@ApiModelProperty("读取寄存器个数")
|
||||
@Excel(name ="读取寄存器个数")
|
||||
private Integer quantity;
|
||||
|
||||
@ApiModelProperty("解析类型")
|
||||
@Excel(name = "解析类型")
|
||||
private String parseType;
|
||||
|
||||
|
||||
public String getParseType() {
|
||||
return parseType;
|
||||
}
|
||||
|
||||
public void setParseType(String parseType) {
|
||||
this.parseType = parseType;
|
||||
}
|
||||
|
||||
/**
|
||||
* 功能码
|
||||
*/
|
||||
private String code;
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public Integer getQuantity() {
|
||||
return quantity;
|
||||
}
|
||||
|
||||
public void setQuantity(Integer quantity) {
|
||||
this.quantity = quantity;
|
||||
}
|
||||
|
||||
private Integer modelOrder;
|
||||
|
||||
public Integer getIsParams() {
|
||||
return isParams;
|
||||
}
|
||||
|
||||
public void setIsParams(Integer isParams) {
|
||||
this.isParams = isParams;
|
||||
}
|
||||
|
||||
public String getLimitValue() {
|
||||
return limitValue;
|
||||
}
|
||||
|
||||
public void setLimitValue(String limitValue) {
|
||||
this.limitValue = limitValue;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getRegStr() {
|
||||
return regStr;
|
||||
}
|
||||
|
||||
public void setRegStr(String regStr) {
|
||||
this.regStr = regStr;
|
||||
}
|
||||
|
||||
public void setModelId(Long modelId)
|
||||
{
|
||||
this.modelId = modelId;
|
||||
}
|
||||
|
||||
public Long getModelId()
|
||||
{
|
||||
return modelId;
|
||||
}
|
||||
public void setModelName(String modelName)
|
||||
{
|
||||
this.modelName = modelName;
|
||||
}
|
||||
|
||||
public String getModelName()
|
||||
{
|
||||
return modelName;
|
||||
}
|
||||
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 setTenantId(Long tenantId)
|
||||
{
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public Long getTenantId()
|
||||
{
|
||||
return tenantId;
|
||||
}
|
||||
public void setTenantName(String tenantName)
|
||||
{
|
||||
this.tenantName = tenantName;
|
||||
}
|
||||
|
||||
public String getTenantName()
|
||||
{
|
||||
return tenantName;
|
||||
}
|
||||
public void setIdentifier(String identifier)
|
||||
{
|
||||
this.identifier = identifier;
|
||||
}
|
||||
|
||||
public String getIdentifier()
|
||||
{
|
||||
return identifier;
|
||||
}
|
||||
public void setType(Integer type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setDatatype(String datatype)
|
||||
{
|
||||
this.datatype = datatype;
|
||||
}
|
||||
|
||||
public String getDatatype()
|
||||
{
|
||||
return datatype;
|
||||
}
|
||||
|
||||
public Integer getTempSlaveId() {
|
||||
return tempSlaveId;
|
||||
}
|
||||
|
||||
public void setTempSlaveId(Integer tempSlaveId) {
|
||||
this.tempSlaveId = tempSlaveId;
|
||||
}
|
||||
|
||||
public void setFormula(String formula)
|
||||
{
|
||||
this.formula = formula;
|
||||
}
|
||||
|
||||
public String getFormula()
|
||||
{
|
||||
return formula;
|
||||
}
|
||||
public void setSpecs(String specs)
|
||||
{
|
||||
this.specs = specs;
|
||||
}
|
||||
|
||||
public String getSpecs()
|
||||
{
|
||||
return specs;
|
||||
}
|
||||
public void setIsChart(Integer isChart)
|
||||
{
|
||||
this.isChart = isChart;
|
||||
}
|
||||
|
||||
public Integer getIsChart()
|
||||
{
|
||||
return isChart;
|
||||
}
|
||||
|
||||
public void setIsHistory(Integer isHistory)
|
||||
{
|
||||
this.isHistory = isHistory;
|
||||
}
|
||||
|
||||
public Integer getIsHistory()
|
||||
{
|
||||
return isHistory;
|
||||
}
|
||||
public void setReverseFormula(String reverseFormula)
|
||||
{
|
||||
this.reverseFormula = reverseFormula;
|
||||
}
|
||||
|
||||
public String getReverseFormula()
|
||||
{
|
||||
return reverseFormula;
|
||||
}
|
||||
|
||||
public Integer getRegAddr() {
|
||||
return regAddr;
|
||||
}
|
||||
|
||||
public void setRegAddr(Integer regAddr) {
|
||||
this.regAddr = regAddr;
|
||||
}
|
||||
|
||||
public void setIsMonitor(Integer isMonitor)
|
||||
{
|
||||
this.isMonitor = isMonitor;
|
||||
}
|
||||
|
||||
public Integer getIsMonitor()
|
||||
{
|
||||
return isMonitor;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
public void setBitOption(String bitOption)
|
||||
{
|
||||
this.bitOption = bitOption;
|
||||
}
|
||||
|
||||
public String getBitOption()
|
||||
{
|
||||
return bitOption;
|
||||
}
|
||||
public void setValueType(Integer valueType)
|
||||
{
|
||||
this.valueType = valueType;
|
||||
}
|
||||
|
||||
public Integer getValueType()
|
||||
{
|
||||
return valueType;
|
||||
}
|
||||
public void setIsReadonly(Integer isReadonly)
|
||||
{
|
||||
this.isReadonly = isReadonly;
|
||||
}
|
||||
|
||||
public Integer getIsReadonly()
|
||||
{
|
||||
return isReadonly;
|
||||
}
|
||||
public void setModelOrder(Integer modelOrder)
|
||||
{
|
||||
this.modelOrder = modelOrder;
|
||||
}
|
||||
|
||||
public Integer getModelOrder()
|
||||
{
|
||||
return modelOrder;
|
||||
}
|
||||
|
||||
public Integer getIsSharePerm() {
|
||||
return isSharePerm;
|
||||
}
|
||||
|
||||
public void setIsSharePerm(Integer isSharePerm) {
|
||||
this.isSharePerm = isSharePerm;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("modelId", getModelId())
|
||||
.append("modelName", getModelName())
|
||||
.append("productId", getProductId())
|
||||
.append("productName", getProductName())
|
||||
.append("tenantId", getTenantId())
|
||||
.append("tenantName", getTenantName())
|
||||
.append("identifier", getIdentifier())
|
||||
.append("type", getType())
|
||||
.append("datatype", getDatatype())
|
||||
.append("tempSlaveId", getTempSlaveId())
|
||||
.append("formula", getFormula())
|
||||
.append("specs", getSpecs())
|
||||
.append("isChart", getIsChart())
|
||||
.append("reverseFormula", getReverseFormula())
|
||||
.append("regAddr", getRegAddr())
|
||||
.append("isMonitor", getIsMonitor())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("bitOption", getBitOption())
|
||||
.append("valueType", getValueType())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.append("isReadonly", getIsReadonly())
|
||||
.append("modelOrder", getModelOrder())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,447 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 通用物模型对象 iot_things_model_template
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2023-01-15
|
||||
*/
|
||||
@ApiModel(value = "ThingsModelTemplate", description = "通用物模型对象 iot_things_model_template")
|
||||
public class ThingsModelTemplate extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 物模型ID */
|
||||
@ApiModelProperty("物模型ID")
|
||||
private Long templateId;
|
||||
|
||||
/** 物模型名称 */
|
||||
@ApiModelProperty("物模型名称")
|
||||
@Excel(name = "物模型名称" ,prompt = "必填")
|
||||
private String templateName;
|
||||
|
||||
/** 租户ID */
|
||||
@ApiModelProperty("租户ID")
|
||||
private Long tenantId;
|
||||
|
||||
/** 租户名称 */
|
||||
@ApiModelProperty("租户名称")
|
||||
private String tenantName;
|
||||
|
||||
/** 标识符,产品下唯一 */
|
||||
@ApiModelProperty("标识符,产品下唯一")
|
||||
@Excel(name = "标识符",prompt = "modbus不填,默认为寄存器地址")
|
||||
private String identifier;
|
||||
|
||||
/** 模型类别(1-属性,2-功能,3-事件) */
|
||||
@ApiModelProperty(value = "模型类别", notes = "(1-属性,2-功能,3-事件)")
|
||||
@Excel(name = "模型类别", readConverterExp = "1=属性,2=功能,3=事件",prompt ="1=属性,2-功能,3-事件")
|
||||
private Integer type;
|
||||
|
||||
/** 从机id */
|
||||
@ApiModelProperty("从机id")
|
||||
private String tempSlaveId;
|
||||
|
||||
/** 寄存器地址 */
|
||||
@ApiModelProperty("寄存器地址")
|
||||
@Excel(name = "寄存器地址" , prompt = "可填写10进制或16进制,16带H,例如:0020H")
|
||||
private String regStr;
|
||||
|
||||
/** 计算公式 */
|
||||
@ApiModelProperty("计算公式")
|
||||
@Excel(name = "计算公式",prompt = "选填,例如:%s*10,%s是占位符")
|
||||
private String formula;
|
||||
|
||||
/** 数据定义 */
|
||||
//@Excel(name = "数据定义")
|
||||
@ApiModelProperty("数据定义")
|
||||
private String specs;
|
||||
|
||||
/** 是否系统通用(0-否,1-是) */
|
||||
@ApiModelProperty("是否系统通用(0-否,1-是)")
|
||||
private Integer isSys;
|
||||
|
||||
/** 控制公式 */
|
||||
@ApiModelProperty("控制公式")
|
||||
@Excel(name = "控制公式",prompt = "选填,例如:%s*10,%s是占位符")
|
||||
private String reverseFormula;
|
||||
|
||||
/** 寄存器地址值 */
|
||||
@ApiModelProperty("寄存器地址值")
|
||||
private Integer regAddr;
|
||||
|
||||
|
||||
|
||||
/** 是否图表显示(0-否,1-是) */
|
||||
@ApiModelProperty("是否图表显示(0-否,1-是)")
|
||||
@Excel(name = "是否图表显示", readConverterExp = "0=否,1=是")
|
||||
private Integer isChart;
|
||||
|
||||
/** 是否历史存储(0-否,1-是) */
|
||||
@ApiModelProperty("是否历史存储(0-否,1-是)")
|
||||
@Excel(name = "是否历史存储", readConverterExp = "0=否,1=是")
|
||||
private Integer isHistory;
|
||||
|
||||
/** 是否实时监测(0-否,1-是) */
|
||||
@ApiModelProperty("是否实时监测(0-否,1-是)")
|
||||
@Excel(name = "是否实时监测", readConverterExp = "0=否,1=是")
|
||||
private Integer isMonitor;
|
||||
|
||||
/** 是否分享设备权限(0-否,1-是) */
|
||||
@ApiModelProperty(value = "是否分享设备权限", notes = "(0-否,1-是) ")
|
||||
@Excel(name = "是否分享设备权限", readConverterExp = "0=否,1=是")
|
||||
private Integer isSharePerm;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
@ApiModelProperty("删除标志(0代表存在 2代表删除)")
|
||||
private String delFlag;
|
||||
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 数值类型 1.数值 2.选项 */
|
||||
@ApiModelProperty("数值类型 1.数值 2.选项")
|
||||
@Excel(name = "解析类型" ,prompt = "解析类型 INT,INT16,UINT16")
|
||||
private String valueType;
|
||||
|
||||
/** 数据类型(integer、decimal、string、bool、array、enum) */
|
||||
@ApiModelProperty(value = "数据类型", notes = "(integer、decimal、string、bool、array、enum)")
|
||||
@Excel(name = "数据类型", prompt = "integer、decimal、string、bool、array、enum")
|
||||
private String datatype;
|
||||
|
||||
@ApiModelProperty("有效值范围")
|
||||
@Excel(name = "有效值范围")
|
||||
private String limitValue;
|
||||
|
||||
/** 位定义选项 */
|
||||
@ApiModelProperty("位定义选项")
|
||||
@Excel(name = "位定义选项")
|
||||
private String bitOption;
|
||||
|
||||
/** 是否只读数据(0-否,1-是) */
|
||||
@ApiModelProperty("是否只读数据(0-否,1-是)")
|
||||
@Excel(name = "是否只读", readConverterExp = "0=否,1=是",prompt = "0=否,1=是")
|
||||
private Integer isReadonly;
|
||||
|
||||
@ApiModelProperty("是否是计算参数,默认否")
|
||||
@Excel(name = "是否是计算参数,默认否",readConverterExp = "0=否,1=是")
|
||||
private Integer isParams;
|
||||
|
||||
@ApiModelProperty("读取寄存器个数")
|
||||
@Excel(name ="读取寄存器个数")
|
||||
private Integer quantity;
|
||||
|
||||
@ApiModelProperty("解析类型")
|
||||
@Excel(name = "解析类型")
|
||||
private String parseType;
|
||||
|
||||
|
||||
public String getParseType() {
|
||||
return parseType;
|
||||
}
|
||||
|
||||
public void setParseType(String parseType) {
|
||||
this.parseType = parseType;
|
||||
}
|
||||
|
||||
private String oldTempSlaveId;
|
||||
|
||||
/**
|
||||
* 功能码
|
||||
*/
|
||||
private String code;
|
||||
|
||||
public String getOldTempSlaveId() {
|
||||
return oldTempSlaveId;
|
||||
}
|
||||
|
||||
public void setOldTempSlaveId(String oldTempSlaveId) {
|
||||
this.oldTempSlaveId = oldTempSlaveId;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public Integer getQuantity() {
|
||||
return quantity;
|
||||
}
|
||||
|
||||
public void setQuantity(Integer quantity) {
|
||||
this.quantity = quantity;
|
||||
}
|
||||
|
||||
private Integer modelOrder;
|
||||
|
||||
public Integer getIsParams() {
|
||||
return isParams;
|
||||
}
|
||||
|
||||
public void setIsParams(Integer isParams) {
|
||||
this.isParams = isParams;
|
||||
}
|
||||
|
||||
public String getRegStr() {
|
||||
return regStr;
|
||||
}
|
||||
|
||||
public void setRegStr(String regStr) {
|
||||
this.regStr = regStr;
|
||||
}
|
||||
|
||||
public String getLimitValue() {
|
||||
return limitValue;
|
||||
}
|
||||
|
||||
public void setLimitValue(String limitValue) {
|
||||
this.limitValue = limitValue;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public void setTemplateId(Long templateId)
|
||||
{
|
||||
this.templateId = templateId;
|
||||
}
|
||||
|
||||
public Long getTemplateId()
|
||||
{
|
||||
return templateId;
|
||||
}
|
||||
public void setTemplateName(String templateName)
|
||||
{
|
||||
this.templateName = templateName;
|
||||
}
|
||||
|
||||
public String getTemplateName()
|
||||
{
|
||||
return templateName;
|
||||
}
|
||||
public void setTenantId(Long tenantId)
|
||||
{
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public Long getTenantId()
|
||||
{
|
||||
return tenantId;
|
||||
}
|
||||
public void setTenantName(String tenantName)
|
||||
{
|
||||
this.tenantName = tenantName;
|
||||
}
|
||||
|
||||
public String getTenantName()
|
||||
{
|
||||
return tenantName;
|
||||
}
|
||||
public void setIdentifier(String identifier)
|
||||
{
|
||||
this.identifier = identifier;
|
||||
}
|
||||
|
||||
public String getIdentifier()
|
||||
{
|
||||
return identifier;
|
||||
}
|
||||
public void setType(Integer type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setDatatype(String datatype)
|
||||
{
|
||||
this.datatype = datatype;
|
||||
}
|
||||
|
||||
public String getDatatype()
|
||||
{
|
||||
return datatype;
|
||||
}
|
||||
public void setSpecs(String specs)
|
||||
{
|
||||
this.specs = specs;
|
||||
}
|
||||
|
||||
public String getSpecs()
|
||||
{
|
||||
return specs;
|
||||
}
|
||||
public void setIsSys(Integer isSys)
|
||||
{
|
||||
this.isSys = isSys;
|
||||
}
|
||||
|
||||
public Integer getIsSys()
|
||||
{
|
||||
return isSys;
|
||||
}
|
||||
public void setIsReadonly(Integer isReadonly)
|
||||
{
|
||||
this.isReadonly = isReadonly;
|
||||
}
|
||||
|
||||
public Integer getIsReadonly()
|
||||
{
|
||||
return isReadonly;
|
||||
}
|
||||
public void setIsChart(Integer isChart)
|
||||
{
|
||||
this.isChart = isChart;
|
||||
}
|
||||
|
||||
public Integer getIsChart()
|
||||
{
|
||||
return isChart;
|
||||
}
|
||||
public void setIsHistory(Integer isHistory)
|
||||
{
|
||||
this.isHistory = isHistory;
|
||||
}
|
||||
|
||||
public Integer getIsHistory()
|
||||
{
|
||||
return isHistory;
|
||||
}
|
||||
|
||||
public String getTempSlaveId() {
|
||||
return tempSlaveId;
|
||||
}
|
||||
|
||||
public void setTempSlaveId(String tempSlaveId) {
|
||||
this.tempSlaveId = tempSlaveId;
|
||||
}
|
||||
|
||||
public void setIsMonitor(Integer isMonitor)
|
||||
{
|
||||
this.isMonitor = isMonitor;
|
||||
}
|
||||
|
||||
public Integer getIsMonitor()
|
||||
{
|
||||
return isMonitor;
|
||||
}
|
||||
public void setFormula(String formula)
|
||||
{
|
||||
this.formula = formula;
|
||||
}
|
||||
|
||||
public String getFormula()
|
||||
{
|
||||
return formula;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
public void setReverseFormula(String reverseFormula)
|
||||
{
|
||||
this.reverseFormula = reverseFormula;
|
||||
}
|
||||
|
||||
public String getReverseFormula()
|
||||
{
|
||||
return reverseFormula;
|
||||
}
|
||||
public void setRegAddr(Integer regAddr)
|
||||
{
|
||||
this.regAddr = regAddr;
|
||||
}
|
||||
|
||||
public Integer getRegAddr()
|
||||
{
|
||||
return regAddr;
|
||||
}
|
||||
public void setBitOption(String bitOption)
|
||||
{
|
||||
this.bitOption = bitOption;
|
||||
}
|
||||
|
||||
public String getBitOption()
|
||||
{
|
||||
return bitOption;
|
||||
}
|
||||
|
||||
public String getValueType() {
|
||||
return valueType;
|
||||
}
|
||||
|
||||
public void setValueType(String valueType) {
|
||||
this.valueType = valueType;
|
||||
}
|
||||
|
||||
public void setModelOrder(Integer modelOrder)
|
||||
{
|
||||
this.modelOrder = modelOrder;
|
||||
}
|
||||
|
||||
public Integer getModelOrder()
|
||||
{
|
||||
return modelOrder;
|
||||
}
|
||||
|
||||
public Integer getIsSharePerm() {
|
||||
return isSharePerm;
|
||||
}
|
||||
|
||||
public void setIsSharePerm(Integer isSharePerm) {
|
||||
this.isSharePerm = isSharePerm;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("templateId", getTemplateId())
|
||||
.append("templateName", getTemplateName())
|
||||
.append("tenantId", getTenantId())
|
||||
.append("tenantName", getTenantName())
|
||||
.append("identifier", getIdentifier())
|
||||
.append("type", getType())
|
||||
.append("datatype", getDatatype())
|
||||
.append("specs", getSpecs())
|
||||
.append("isSys", getIsSys())
|
||||
.append("isReadonly", getIsReadonly())
|
||||
.append("isChart", getIsChart())
|
||||
.append("tempSlaveId", getTempSlaveId())
|
||||
.append("isMonitor", getIsMonitor())
|
||||
.append("formula", getFormula())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("reverseFormula", getReverseFormula())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("regAddr", getRegAddr())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("bitOption", getBitOption())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("valueType", getValueType())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.append("modelOrder", getModelOrder())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
public class UserSocialProfile {
|
||||
/**
|
||||
* 第三方系统用户表主键
|
||||
*/
|
||||
private Long socialUserId;
|
||||
|
||||
/**
|
||||
* 第三方用户来源
|
||||
*/
|
||||
@Excel(name = "第三方用户来源")
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
@Excel(name = "用户名")
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
@Excel(name = "用户昵称")
|
||||
private String nickname;
|
||||
|
||||
/**
|
||||
* 用户头像
|
||||
*/
|
||||
@Excel(name = "用户头像")
|
||||
private String avatar;
|
||||
|
||||
/**
|
||||
* 绑定状态(0:未绑定,1:绑定)
|
||||
*/
|
||||
@Excel(name = "绑定状态(0:未绑定,1:绑定)")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 第三方具体来源
|
||||
*/
|
||||
private String sourceClient;
|
||||
|
||||
public String getSourceClient() {
|
||||
return sourceClient;
|
||||
}
|
||||
|
||||
public void setSourceClient(String sourceClient) {
|
||||
this.sourceClient = sourceClient;
|
||||
}
|
||||
|
||||
public Long getSocialUserId() {
|
||||
return socialUserId;
|
||||
}
|
||||
|
||||
public void setSocialUserId(Long socialUserId) {
|
||||
this.socialUserId = socialUserId;
|
||||
}
|
||||
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
public void setSource(String source) {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getNickname() {
|
||||
return nickname;
|
||||
}
|
||||
|
||||
public void setNickname(String nickname) {
|
||||
this.nickname = nickname;
|
||||
}
|
||||
|
||||
public String getAvatar() {
|
||||
return avatar;
|
||||
}
|
||||
|
||||
public void setAvatar(String avatar) {
|
||||
this.avatar = avatar;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("socialUserId", getSocialUserId())
|
||||
.append("source", getSource())
|
||||
.append("status", getStatus())
|
||||
.append("username", getUsername())
|
||||
.append("nickname", getNickname())
|
||||
.append("avatar", getAvatar())
|
||||
.toString();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 设备采集变量模板对象 iot_var_temp
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-11-30
|
||||
*/
|
||||
@ApiModel(value = "VarTemp", description = "设备采集变量模板对象 iot_var_temp")
|
||||
public class VarTemp extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键id */
|
||||
@ApiModelProperty("主键id")
|
||||
private Long templateId;
|
||||
|
||||
/** 模板名称 */
|
||||
@ApiModelProperty("模板名称")
|
||||
@Excel(name = "模板名称")
|
||||
private String templateName;
|
||||
|
||||
/** $column.columnComment */
|
||||
@ApiModelProperty("类型")
|
||||
private Integer type;
|
||||
|
||||
/** 采集方式 1.云端轮询 2.云端边缘计算 */
|
||||
@ApiModelProperty(value = "采集方式", notes = "1.云端轮询 2.云端边缘计算")
|
||||
@Excel(name = "采集方式 1.云端轮询 2.云端边缘计算")
|
||||
private Integer pollingMethod;
|
||||
|
||||
/** 从机总数 */
|
||||
@ApiModelProperty("从机总数")
|
||||
@Excel(name = "从机总数")
|
||||
private Long slaveTotal;
|
||||
|
||||
/** 总采集点数 */
|
||||
@ApiModelProperty("总采集点数")
|
||||
@Excel(name = "总采集点数")
|
||||
private Long pointTotal;
|
||||
|
||||
/** 是否分享 */
|
||||
@ApiModelProperty("是否分享")
|
||||
@Excel(name = "是否分享")
|
||||
private Integer share;
|
||||
|
||||
/** 模板所属用户 */
|
||||
@ApiModelProperty("模板所属用户")
|
||||
@Excel(name = "模板所属用户")
|
||||
private Long userId;
|
||||
|
||||
public void setTemplateId(Long templateId)
|
||||
{
|
||||
this.templateId = templateId;
|
||||
}
|
||||
|
||||
public Long getTemplateId()
|
||||
{
|
||||
return templateId;
|
||||
}
|
||||
public void setTemplateName(String templateName)
|
||||
{
|
||||
this.templateName = templateName;
|
||||
}
|
||||
|
||||
public String getTemplateName()
|
||||
{
|
||||
return templateName;
|
||||
}
|
||||
public void setType(Integer type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setPollingMethod(Integer pollingMethod)
|
||||
{
|
||||
this.pollingMethod = pollingMethod;
|
||||
}
|
||||
|
||||
public Integer getPollingMethod()
|
||||
{
|
||||
return pollingMethod;
|
||||
}
|
||||
public void setSlaveTotal(Long slaveTotal)
|
||||
{
|
||||
this.slaveTotal = slaveTotal;
|
||||
}
|
||||
|
||||
public Long getSlaveTotal()
|
||||
{
|
||||
return slaveTotal;
|
||||
}
|
||||
public void setPointTotal(Long pointTotal)
|
||||
{
|
||||
this.pointTotal = pointTotal;
|
||||
}
|
||||
|
||||
public Long getPointTotal()
|
||||
{
|
||||
return pointTotal;
|
||||
}
|
||||
public void setShare(Integer share)
|
||||
{
|
||||
this.share = share;
|
||||
}
|
||||
|
||||
public Integer getShare()
|
||||
{
|
||||
return share;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("templateId", getTemplateId())
|
||||
.append("templateName", getTemplateName())
|
||||
.append("type", getType())
|
||||
.append("pollingMethod", getPollingMethod())
|
||||
.append("slaveTotal", getSlaveTotal())
|
||||
.append("pointTotal", getPointTotal())
|
||||
.append("share", getShare())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("userId", getUserId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
package com.fastbee.iot.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 变量模板设备从机对象 iot_var_temp_salve
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-12-12
|
||||
*/
|
||||
@ApiModel(value = "VarTempSalve", description = "变量模板设备从机对象 iot_var_temp_salve")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class VarTempSalve extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键id */
|
||||
@ApiModelProperty("主键id")
|
||||
private Long id;
|
||||
|
||||
/** 关联的模板id */
|
||||
@ApiModelProperty("关联的模板id")
|
||||
@Excel(name = "关联的模板id")
|
||||
private Long deviceTempId;
|
||||
|
||||
/** 从机编号 */
|
||||
@ApiModelProperty("从机编号")
|
||||
@Excel(name = "从机编号")
|
||||
private Integer slaveAddr;
|
||||
|
||||
/**
|
||||
* 功能编码
|
||||
*/
|
||||
@ApiModelProperty("功能编码")
|
||||
private Integer code;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Integer slaveIndex;
|
||||
|
||||
/** 从机ip地址 */
|
||||
@ApiModelProperty("从机ip地址")
|
||||
@Excel(name = "从机ip地址")
|
||||
private String slaveIp;
|
||||
|
||||
/** 从机名称 */
|
||||
@ApiModelProperty("从机名称")
|
||||
@Excel(name = "从机名称")
|
||||
private String slaveName;
|
||||
|
||||
/** 从机端口 */
|
||||
@ApiModelProperty("从机端口")
|
||||
@Excel(name = "从机端口")
|
||||
private Integer slavePort;
|
||||
|
||||
/** 寄存器起始地址(10进制) */
|
||||
@ApiModelProperty("寄存器起始地址(10进制)")
|
||||
@Excel(name = "寄存器起始地址(10进制)")
|
||||
private Long addrStart;
|
||||
|
||||
/** 寄存器结束地址(10进制) */
|
||||
@ApiModelProperty("寄存器结束地址(10进制)")
|
||||
@Excel(name = "寄存器结束地址(10进制)")
|
||||
private Long addrEnd;
|
||||
|
||||
/** 寄存器批量读取个数*/
|
||||
@ApiModelProperty("寄存器批量读取个数")
|
||||
private Integer packetLength;
|
||||
|
||||
/** 批量获取轮询时间(默认5分钟) */
|
||||
@ApiModelProperty("批量获取轮询时间(默认5分钟)")
|
||||
@Excel(name = "批量获取轮询时间(默认300s)")
|
||||
private Long timer;
|
||||
|
||||
/** 状态 0-启动 1-失效 */
|
||||
@ApiModelProperty("状态 0-启动 1-失效")
|
||||
@Excel(name = "状态 0-启动 1-失效")
|
||||
private Integer status;
|
||||
|
||||
|
||||
/**
|
||||
* 轮询方式
|
||||
*/
|
||||
private Integer pollingMethod;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.fastbee.iot.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum DeviceType {
|
||||
/**
|
||||
* 未知
|
||||
*/
|
||||
UNKNOWN(0, "未知"),
|
||||
/**
|
||||
* 直连设备
|
||||
*/
|
||||
DIRECT_DEVICE(1, "直连设备"),
|
||||
/**
|
||||
* 网关设备
|
||||
*/
|
||||
GATEWAY(2, "网关设备"),
|
||||
/**
|
||||
* 监控设备
|
||||
*/
|
||||
CAMERA(3, "监控设备");
|
||||
|
||||
private int code;
|
||||
private String desc;
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import com.fastbee.iot.domain.Category;
|
||||
import com.fastbee.iot.model.IdAndName;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品分类Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Repository
|
||||
public interface CategoryMapper
|
||||
{
|
||||
/**
|
||||
* 查询产品分类
|
||||
*
|
||||
* @param categoryId 产品分类主键
|
||||
* @return 产品分类
|
||||
*/
|
||||
public Category selectCategoryByCategoryId(Long categoryId);
|
||||
|
||||
/**
|
||||
* 查询产品分类列表
|
||||
*
|
||||
* @param category 产品分类
|
||||
* @return 产品分类集合
|
||||
*/
|
||||
public List<Category> selectCategoryList(Category category);
|
||||
|
||||
/**
|
||||
* 查询产品简短分类列表
|
||||
*
|
||||
* @return 产品分类集合
|
||||
*/
|
||||
public List<IdAndName> selectCategoryShortList(Category category);
|
||||
|
||||
/**
|
||||
* 新增产品分类
|
||||
*
|
||||
* @param category 产品分类
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCategory(Category category);
|
||||
|
||||
/**
|
||||
* 修改产品分类
|
||||
*
|
||||
* @param category 产品分类
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCategory(Category category);
|
||||
|
||||
/**
|
||||
* 删除产品分类
|
||||
*
|
||||
* @param categoryId 产品分类主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCategoryByCategoryId(Long categoryId);
|
||||
|
||||
/**
|
||||
* 批量删除产品分类
|
||||
*
|
||||
* @param categoryIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCategoryByCategoryIds(Long[] categoryIds);
|
||||
|
||||
/**
|
||||
* 分类下的产品数量
|
||||
*
|
||||
* @param categoryIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int productCountInCategorys(Long[] categoryIds);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import com.fastbee.iot.domain.DeviceJob;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 调度任务信息 数据层
|
||||
*
|
||||
* @author kerwincui
|
||||
*/
|
||||
@Repository
|
||||
public interface DeviceJobMapper
|
||||
{
|
||||
/**
|
||||
* 查询调度任务日志集合
|
||||
*
|
||||
* @param job 调度信息
|
||||
* @return 操作日志集合
|
||||
*/
|
||||
public List<DeviceJob> selectJobList(DeviceJob job);
|
||||
|
||||
/**
|
||||
* 根据设备Ids查询调度任务日志集合
|
||||
*
|
||||
* @param deviceIds 设备ID数组
|
||||
* @return 操作日志集合
|
||||
*/
|
||||
public List<DeviceJob> selectShortJobListByDeviceIds(Long[] deviceIds);
|
||||
|
||||
/**
|
||||
* 根据告警Ids查询调度任务日志集合
|
||||
*
|
||||
* @param alertIds 告警ID数组
|
||||
* @return 操作日志集合
|
||||
*/
|
||||
public List<DeviceJob> selectShortJobListByAlertIds(Long[] alertIds);
|
||||
|
||||
/**
|
||||
* 根据场景Ids查询调度任务日志集合
|
||||
*
|
||||
* @param sceneIds 场景ID数组
|
||||
* @return 操作日志集合
|
||||
*/
|
||||
public List<DeviceJob> selectShortJobListBySceneIds(Long[] sceneIds);
|
||||
|
||||
/**
|
||||
* 查询所有调度任务
|
||||
*
|
||||
* @return 调度任务列表
|
||||
*/
|
||||
public List<DeviceJob> selectJobAll();
|
||||
|
||||
/**
|
||||
* 通过调度ID查询调度任务信息
|
||||
*
|
||||
* @param jobId 调度ID
|
||||
* @return 角色对象信息
|
||||
*/
|
||||
public DeviceJob selectJobById(Long jobId);
|
||||
|
||||
/**
|
||||
* 通过调度ID删除调度任务信息
|
||||
*
|
||||
* @param jobId 调度ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteJobById(Long jobId);
|
||||
|
||||
/**
|
||||
* 批量删除调度任务信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteJobByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 根据设备Ids批量删除调度任务信息
|
||||
*
|
||||
* @param deviceIds 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteJobByDeviceIds(Long[] deviceIds);
|
||||
|
||||
/**
|
||||
* 根据告警Ids批量删除调度任务信息
|
||||
*
|
||||
* @param alertIds 需要删除的告警IDs
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteJobByAlertIds(Long[] alertIds);
|
||||
|
||||
/**
|
||||
* 根据场景联动Ids批量删除调度任务信息
|
||||
*
|
||||
* @param sceneIds 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteJobBySceneIds(Long[] sceneIds);
|
||||
|
||||
/**
|
||||
* 修改调度任务信息
|
||||
*
|
||||
* @param job 调度任务信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateJob(DeviceJob job);
|
||||
|
||||
/**
|
||||
* 新增调度任务信息
|
||||
*
|
||||
* @param job 调度任务信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertJob(DeviceJob job);
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import com.fastbee.iot.domain.Device;
|
||||
import com.fastbee.iot.domain.DeviceLog;
|
||||
import com.fastbee.iot.model.DeviceStatistic;
|
||||
import com.fastbee.iot.model.HistoryModel;
|
||||
import com.fastbee.iot.model.MonitorModel;
|
||||
import com.fastbee.iot.tdengine.service.model.TdLogDto;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备日志Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-01-13
|
||||
*/
|
||||
@Repository
|
||||
public interface DeviceLogMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备日志
|
||||
*
|
||||
* @param logId 设备日志主键
|
||||
* @return 设备日志
|
||||
*/
|
||||
public DeviceLog selectDeviceLogByLogId(Long logId);
|
||||
|
||||
/**
|
||||
* 查询日志分类总数
|
||||
*
|
||||
* @return 设备日志
|
||||
*/
|
||||
public DeviceStatistic selectCategoryLogCount(Device device);
|
||||
|
||||
/**
|
||||
* 查询设备监测数据
|
||||
*
|
||||
* @param deviceLog 设备日志
|
||||
* @return 设备日志集合
|
||||
*/
|
||||
public List<MonitorModel> selectMonitorList(DeviceLog deviceLog);
|
||||
|
||||
|
||||
/**
|
||||
* 批量保存图片
|
||||
*/
|
||||
public int saveBatch(@Param("list") List<DeviceLog> list);
|
||||
|
||||
/**
|
||||
* 修改设备日志
|
||||
*
|
||||
* @param deviceLog 设备日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceLog(DeviceLog deviceLog);
|
||||
|
||||
/**
|
||||
* 删除设备日志
|
||||
*
|
||||
* @param logId 设备日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceLogByLogId(Long logId);
|
||||
|
||||
/**
|
||||
* 批量删除设备日志
|
||||
*
|
||||
* @param logIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceLogByLogIds(Long[] logIds);
|
||||
|
||||
/**
|
||||
* 根据设备Ids批量删除设备日志
|
||||
*
|
||||
* @param deviceNumber 需要删除的数据设备Id
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceLogByDeviceNumber(String deviceNumber);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,298 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import com.fastbee.common.core.thingsModel.ThingsModelValuesInput;
|
||||
import com.fastbee.iot.domain.Device;
|
||||
import com.fastbee.iot.model.AuthenticateInputModel;
|
||||
import com.fastbee.iot.model.DeviceAllShortOutput;
|
||||
import com.fastbee.iot.model.DeviceMqttVO;
|
||||
import com.fastbee.iot.model.DeviceRelateAlertLogVO;
|
||||
import com.fastbee.iot.model.DeviceShortOutput;
|
||||
import com.fastbee.iot.model.DeviceStatistic;
|
||||
import com.fastbee.iot.model.ProductAuthenticateModel;
|
||||
import com.fastbee.iot.model.ThingsModels.ThingsModelValuesOutput;
|
||||
import com.fastbee.iot.model.UserIdDeviceIdModel;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 设备Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Repository
|
||||
public interface DeviceMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备
|
||||
*
|
||||
* @param deviceId 设备主键
|
||||
* @return 设备
|
||||
*/
|
||||
public Device selectDeviceByDeviceId(Long deviceId);
|
||||
|
||||
/**
|
||||
* 查询设备和产品总数
|
||||
*
|
||||
* @return 设备
|
||||
*/
|
||||
public DeviceStatistic selectDeviceProductAlertCount(Device device);
|
||||
|
||||
/**
|
||||
* 根据设备编号查询设备
|
||||
*
|
||||
* @param serialNumber 设备主键
|
||||
* @return 设备
|
||||
*/
|
||||
public Device selectDeviceBySerialNumber(String serialNumber);
|
||||
|
||||
|
||||
/**
|
||||
* 根据设备编号查询设备数量
|
||||
*
|
||||
* @param serialNumber 设备主键
|
||||
* @return 设备
|
||||
*/
|
||||
public int selectDeviceCountBySerialNumber(String serialNumber);
|
||||
|
||||
/**
|
||||
* 根据设备编号查询简介设备
|
||||
*
|
||||
* @param serialNumber 设备主键
|
||||
* @return 设备
|
||||
*/
|
||||
public Device selectShortDeviceBySerialNumber(String serialNumber);
|
||||
|
||||
/**
|
||||
* 根据设备编号查询设备认证信息
|
||||
*
|
||||
* @param model 设备编号和产品ID
|
||||
* @return 设备
|
||||
*/
|
||||
public ProductAuthenticateModel selectProductAuthenticate(AuthenticateInputModel model);
|
||||
|
||||
/**
|
||||
* 查询设备和运行状态
|
||||
*
|
||||
* @param deviceId 设备主键
|
||||
* @return 设备
|
||||
*/
|
||||
public DeviceShortOutput selectDeviceRunningStatusByDeviceId(Long deviceId);
|
||||
|
||||
/**
|
||||
* 查询设备的物模型值
|
||||
*
|
||||
* @param serialNumber 设备编号
|
||||
* @return 设备
|
||||
*/
|
||||
public ThingsModelValuesOutput selectDeviceThingsModelValueBySerialNumber(String serialNumber);
|
||||
|
||||
/**
|
||||
* 修改设备的物模型值
|
||||
*
|
||||
* @param input 设备ID和物模型值
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceThingsModelValue(ThingsModelValuesInput input);
|
||||
|
||||
|
||||
/**
|
||||
* 查询设备列表
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 设备集合
|
||||
*/
|
||||
public List<Device> selectDeviceList(Device device);
|
||||
|
||||
/**
|
||||
* 查询未分配授权码设备列表
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 设备集合
|
||||
*/
|
||||
public List<Device> selectUnAuthDeviceList(Device device);
|
||||
|
||||
/**
|
||||
* 查询分组可添加设备分页列表
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 设备集合
|
||||
*/
|
||||
public List<Device> selectDeviceListByGroup(Device device);
|
||||
|
||||
/**
|
||||
* 查询设备简短列表
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 设备集合
|
||||
*/
|
||||
public List<DeviceShortOutput> selectDeviceShortList(Device device);
|
||||
|
||||
/**
|
||||
* 查询所有设备简短列表
|
||||
*
|
||||
* @return 设备集合
|
||||
*/
|
||||
public List<DeviceAllShortOutput> selectAllDeviceShortList(Device device);
|
||||
|
||||
/**
|
||||
* 根据产品ID查询产品下所有设备的编号
|
||||
*
|
||||
* @return 设备集合
|
||||
*/
|
||||
public List<String> selectSerialNumberByProductId(Long productId);
|
||||
|
||||
/**
|
||||
* 获取产品下面的设备数量
|
||||
*
|
||||
* @param productId 产品
|
||||
* @return 结果
|
||||
*/
|
||||
public int selectDeviceCountByProductId(Long productId);
|
||||
|
||||
/**
|
||||
* 新增设备
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevice(Device device);
|
||||
|
||||
/**
|
||||
* 修改设备
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevice(Device device);
|
||||
|
||||
/**
|
||||
* 更新设备状态
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceStatus(Device device);
|
||||
|
||||
/**
|
||||
* 更新固件版本
|
||||
* @param device
|
||||
* @return
|
||||
*/
|
||||
public int updateDeviceFirmwareVersion(Device device);
|
||||
|
||||
/**
|
||||
* 通过设备编号修改设备
|
||||
*
|
||||
* @param device 设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceBySerialNumber(Device device);
|
||||
|
||||
/**
|
||||
* 删除设备
|
||||
*
|
||||
* @param deviceId 设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceByDeviceId(Long deviceId);
|
||||
|
||||
/**
|
||||
* 批量删除设备
|
||||
*
|
||||
* @param deviceIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceByDeviceIds(Long[] deviceIds);
|
||||
|
||||
/**
|
||||
* 根据网关编号删除子设备
|
||||
* @param gwCode
|
||||
*/
|
||||
public void deleteSubDevice(String gwCode);
|
||||
|
||||
/**
|
||||
* 查询设备序列号的数量
|
||||
* @param deviceNum
|
||||
* @return
|
||||
*/
|
||||
public int getDeviceNumCount(String deviceNum);
|
||||
|
||||
/**
|
||||
* 根据设备IDS删除设备分组
|
||||
* @param userDeviceGroupIdModel
|
||||
* @return
|
||||
*/
|
||||
public int deleteDeviceGroupByDeviceId(UserIdDeviceIdModel userDeviceGroupIdModel);
|
||||
|
||||
/**
|
||||
* 重置设备状态
|
||||
* @return 结果
|
||||
*/
|
||||
public int resetDeviceStatus(String deviceNum);
|
||||
|
||||
/**
|
||||
* 根据设备编号查询协议编码
|
||||
* @param serialNumber 设备编号
|
||||
* @return
|
||||
*/
|
||||
public Map<String,Object> selectProtocolBySerialNumber(String serialNumber);
|
||||
|
||||
/**
|
||||
* 查询产品下所有设备,返回设备编号
|
||||
* @param productId 产品id
|
||||
* @return
|
||||
*/
|
||||
public List<Device> selectDevicesByProductId(@Param("productId") Long productId,@Param("hasSub") Integer hasSub);
|
||||
|
||||
/**
|
||||
* 查询子设备总数
|
||||
* @param gwDevCode 网关编号
|
||||
* @return 数量
|
||||
*/
|
||||
public Integer getSubDeviceCount(String gwDevCode);
|
||||
|
||||
|
||||
/**
|
||||
* 批量更新设备上线
|
||||
* @param devices 设备ids
|
||||
*/
|
||||
public void batchChangeOnline(List<String> devices);
|
||||
|
||||
/**
|
||||
* 批量更新设备下线
|
||||
* @param devices 设备ids
|
||||
*/
|
||||
public void batchChangeOffline(List<String> devices);
|
||||
|
||||
/**
|
||||
* 查询在线的modbus网关设备
|
||||
* @return
|
||||
*/
|
||||
public List<Device> selectOnlineModbusDevices();
|
||||
|
||||
/**
|
||||
* 获取设备MQTT连接参数
|
||||
* @param deviceId 设备id
|
||||
* @return
|
||||
*/
|
||||
DeviceMqttVO selectMqttConnectData(Long deviceId);
|
||||
|
||||
/**
|
||||
* 查询告警日志相关联信息
|
||||
* @param deviceNumbers 设备编号集合
|
||||
* @return
|
||||
*/
|
||||
List<DeviceRelateAlertLogVO> selectDeviceBySerialNumbers(@Param("deviceNumbers") Set<String> deviceNumbers);
|
||||
|
||||
/**
|
||||
* 查询告警日志相关联信息
|
||||
* @param deviceNumber 设备编号
|
||||
* @return
|
||||
*/
|
||||
DeviceRelateAlertLogVO selectRelateAlertLogBySerialNumber(String deviceNumber);
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.fastbee.common.core.domain.entity.SysUser;
|
||||
import com.fastbee.iot.domain.DeviceUser;
|
||||
import com.fastbee.iot.model.UserIdDeviceIdModel;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 设备用户Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Repository
|
||||
public interface DeviceUserMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备用户
|
||||
*
|
||||
* @param deviceId 设备用户主键
|
||||
* @return 设备用户
|
||||
*/
|
||||
public List<DeviceUser> selectDeviceUserByDeviceId(Long deviceId);
|
||||
|
||||
/**
|
||||
* 查询设备用户列表
|
||||
*
|
||||
* @param deviceUser 设备用户
|
||||
* @return 设备用户集合
|
||||
*/
|
||||
public List<DeviceUser> selectDeviceUserList(DeviceUser deviceUser);
|
||||
|
||||
/**
|
||||
* 查询设备分享用户
|
||||
*
|
||||
* @param deviceUser 设备用户
|
||||
* @return 设备用户集合
|
||||
*/
|
||||
public SysUser selectShareUser(DeviceUser deviceUser);
|
||||
|
||||
/**
|
||||
* 新增设备用户
|
||||
*
|
||||
* @param deviceUser 设备用户
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceUser(DeviceUser deviceUser);
|
||||
|
||||
/**
|
||||
* 修改设备用户
|
||||
*
|
||||
* @param deviceUser 设备用户
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceUser(DeviceUser deviceUser);
|
||||
|
||||
/**
|
||||
* 删除设备用户
|
||||
*
|
||||
* @param UserIdDeviceIdModel 用户ID和设备ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceUserByDeviceId(UserIdDeviceIdModel UserIdDeviceIdModel);
|
||||
|
||||
/**
|
||||
* 批量删除设备用户
|
||||
*
|
||||
* @param deviceIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceUserByDeviceIds(Long[] deviceIds);
|
||||
|
||||
/**
|
||||
* 批量添加设备用户
|
||||
* @param deviceUsers 设备用户
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceUserList(List<DeviceUser> deviceUsers);
|
||||
|
||||
/**
|
||||
* 根据deviceId 和 userId 查询
|
||||
* @param deviceId 设备id
|
||||
* @param userId 用户id
|
||||
* @return 结果
|
||||
*/
|
||||
public DeviceUser selectDeviceUserByDeviceIdAndUserId(@Param("deviceId") Long deviceId, @Param("userId") Long userId);
|
||||
|
||||
/**
|
||||
* 根据deviceId 和 userId 删除设备用户,不包含设备所有者
|
||||
*/
|
||||
public int deleteDeviceUser(DeviceUser deviceUser);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.fastbee.iot.domain.EventLog;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 事件日志Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2023-03-28
|
||||
*/
|
||||
@Repository
|
||||
public interface EventLogMapper
|
||||
{
|
||||
/**
|
||||
* 查询事件日志
|
||||
*
|
||||
* @param logId 事件日志主键
|
||||
* @return 事件日志
|
||||
*/
|
||||
public EventLog selectEventLogByLogId(Long logId);
|
||||
|
||||
/**
|
||||
* 查询事件日志列表
|
||||
*
|
||||
* @param eventLog 事件日志
|
||||
* @return 事件日志集合
|
||||
*/
|
||||
public List<EventLog> selectEventLogList(EventLog eventLog);
|
||||
|
||||
/**
|
||||
* 新增事件日志
|
||||
*
|
||||
* @param eventLog 事件日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEventLog(EventLog eventLog);
|
||||
|
||||
/**
|
||||
* 批量存储事件日志
|
||||
* @param list
|
||||
*/
|
||||
public void insertBatch(List<EventLog> list);
|
||||
|
||||
/**
|
||||
* 修改事件日志
|
||||
*
|
||||
* @param eventLog 事件日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEventLog(EventLog eventLog);
|
||||
|
||||
/**
|
||||
* 删除事件日志
|
||||
*
|
||||
* @param logId 事件日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEventLogByLogId(Long logId);
|
||||
|
||||
/**
|
||||
* 根据设备编号删除事件日志
|
||||
*
|
||||
* @param serialNumber 设备编号
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEventLogBySerialNumber(String serialNumber);
|
||||
|
||||
/**
|
||||
* 批量删除事件日志
|
||||
*
|
||||
* @param logIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEventLogByLogIds(Long[] logIds);
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.fastbee.iot.domain.FunctionLog;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 设备服务下发日志Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-10-22
|
||||
*/
|
||||
@Repository
|
||||
public interface FunctionLogMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备服务下发日志
|
||||
*
|
||||
* @param id 设备服务下发日志主键
|
||||
* @return 设备服务下发日志
|
||||
*/
|
||||
public FunctionLog selectFunctionLogById(Long id);
|
||||
|
||||
/**
|
||||
* 查询设备服务下发日志列表
|
||||
*
|
||||
* @param functionLog 设备服务下发日志
|
||||
* @return 设备服务下发日志集合
|
||||
*/
|
||||
public List<FunctionLog> selectFunctionLogList(FunctionLog functionLog);
|
||||
|
||||
/**
|
||||
* 新增设备服务下发日志
|
||||
*
|
||||
* @param functionLog 设备服务下发日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertFunctionLog(FunctionLog functionLog);
|
||||
|
||||
/**
|
||||
* 批量插入数据
|
||||
* @param list
|
||||
*/
|
||||
public void insertBatch(List<FunctionLog> list);
|
||||
|
||||
/**
|
||||
* 修改设备服务下发日志
|
||||
*
|
||||
* @param functionLog 设备服务下发日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateFunctionLog(FunctionLog functionLog);
|
||||
|
||||
/**
|
||||
* 删除设备服务下发日志
|
||||
*
|
||||
* @param id 设备服务下发日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFunctionLogById(Long id);
|
||||
|
||||
/**
|
||||
* 根据设备编号删除设备服务下发日志
|
||||
*
|
||||
* @param serialNumber 设备编号
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFunctionLogBySerialNumber(String serialNumber);
|
||||
|
||||
/**
|
||||
* 根据标识符前缀和设备编号批量删除日志
|
||||
*
|
||||
* @param
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFunctionLogByPreIdentify(FunctionLog functionLog);
|
||||
|
||||
/**
|
||||
* 批量删除设备服务下发日志
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFunctionLogByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 批量更新日志状态值
|
||||
* @param log 参数
|
||||
*/
|
||||
public void updateFuncLogBatch(FunctionLog log);
|
||||
|
||||
/**
|
||||
* 根据消息id更新指令下发状态
|
||||
* @param log
|
||||
*/
|
||||
public void updateByMessageId(FunctionLog log);
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.fastbee.iot.domain.Group;
|
||||
import com.fastbee.iot.model.DeviceGroupInput;
|
||||
import com.fastbee.iot.model.IdOutput;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 设备分组Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Repository
|
||||
public interface GroupMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备分组
|
||||
*
|
||||
* @param groupId 设备分组主键
|
||||
* @return 设备分组
|
||||
*/
|
||||
public Group selectGroupByGroupId(Long groupId);
|
||||
|
||||
/**
|
||||
* 通过分组ID查询关联的设备ID数组
|
||||
* @param groupId
|
||||
* @return
|
||||
*/
|
||||
public List<IdOutput> selectDeviceIdsByGroupId(Long groupId);
|
||||
|
||||
/**
|
||||
* 查询设备分组列表
|
||||
*
|
||||
* @param group 设备分组
|
||||
* @return 设备分组集合
|
||||
*/
|
||||
public List<Group> selectGroupList(Group group);
|
||||
|
||||
/**
|
||||
* 新增设备分组
|
||||
*
|
||||
* @param group 设备分组
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGroup(Group group);
|
||||
|
||||
/**
|
||||
* 分组下批量增加设备分组
|
||||
* @param input
|
||||
* @return
|
||||
*/
|
||||
public int insertDeviceGroups(DeviceGroupInput input);
|
||||
|
||||
/**
|
||||
* 修改设备分组
|
||||
*
|
||||
* @param group 设备分组
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGroup(Group group);
|
||||
|
||||
/**
|
||||
* 删除设备分组
|
||||
*
|
||||
* @param groupId 设备分组主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGroupByGroupId(Long groupId);
|
||||
|
||||
/**
|
||||
* 批量删除分组
|
||||
*
|
||||
* @param groupIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGroupByGroupIds(Long[] groupIds);
|
||||
|
||||
/**
|
||||
* 批量删除设备分组
|
||||
* @param groupIds
|
||||
* @return
|
||||
*/
|
||||
public int deleteDeviceGroupByGroupIds(Long[] groupIds);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.fastbee.iot.domain.NewsCategory;
|
||||
import com.fastbee.iot.model.IdAndName;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 新闻分类Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-04-09
|
||||
*/
|
||||
@Repository
|
||||
public interface NewsCategoryMapper
|
||||
{
|
||||
/**
|
||||
* 查询新闻分类
|
||||
*
|
||||
* @param categoryId 新闻分类主键
|
||||
* @return 新闻分类
|
||||
*/
|
||||
public NewsCategory selectNewsCategoryByCategoryId(Long categoryId);
|
||||
|
||||
/**
|
||||
* 查询新闻分类列表
|
||||
*
|
||||
* @param newsCategory 新闻分类
|
||||
* @return 新闻分类集合
|
||||
*/
|
||||
public List<NewsCategory> selectNewsCategoryList(NewsCategory newsCategory);
|
||||
|
||||
/**
|
||||
* 查询新闻分类简短列表
|
||||
*
|
||||
* @return 新闻分类集合
|
||||
*/
|
||||
public List<IdAndName> selectNewsCategoryShortList();
|
||||
|
||||
/**
|
||||
* 新增新闻分类
|
||||
*
|
||||
* @param newsCategory 新闻分类
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertNewsCategory(NewsCategory newsCategory);
|
||||
|
||||
/**
|
||||
* 修改新闻分类
|
||||
*
|
||||
* @param newsCategory 新闻分类
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateNewsCategory(NewsCategory newsCategory);
|
||||
|
||||
/**
|
||||
* 删除新闻分类
|
||||
*
|
||||
* @param categoryId 新闻分类主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNewsCategoryByCategoryId(Long categoryId);
|
||||
|
||||
/**
|
||||
* 批量删除新闻分类
|
||||
*
|
||||
* @param categoryIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNewsCategoryByCategoryIds(Long[] categoryIds);
|
||||
|
||||
/**
|
||||
* 分类下的新闻数量
|
||||
*
|
||||
* @param categoryIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int newsCountInCategorys(Long[] categoryIds);
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.fastbee.iot.domain.News;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 新闻资讯Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-04-09
|
||||
*/
|
||||
@Repository
|
||||
public interface NewsMapper
|
||||
{
|
||||
/**
|
||||
* 查询新闻资讯
|
||||
*
|
||||
* @param newsId 新闻资讯主键
|
||||
* @return 新闻资讯
|
||||
*/
|
||||
public News selectNewsByNewsId(Long newsId);
|
||||
|
||||
/**
|
||||
* 查询新闻资讯列表
|
||||
*
|
||||
* @param news 新闻资讯
|
||||
* @return 新闻资讯集合
|
||||
*/
|
||||
public List<News> selectNewsList(News news);
|
||||
|
||||
/**
|
||||
* 查询置顶新闻资讯列表
|
||||
*
|
||||
* @return 新闻资讯集合
|
||||
*/
|
||||
public List<News> selectTopNewsList();
|
||||
|
||||
/**
|
||||
* 新增新闻资讯
|
||||
*
|
||||
* @param news 新闻资讯
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertNews(News news);
|
||||
|
||||
/**
|
||||
* 修改新闻资讯
|
||||
*
|
||||
* @param news 新闻资讯
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateNews(News news);
|
||||
|
||||
/**
|
||||
* 删除新闻资讯
|
||||
*
|
||||
* @param newsId 新闻资讯主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNewsByNewsId(Long newsId);
|
||||
|
||||
/**
|
||||
* 批量删除新闻资讯
|
||||
*
|
||||
* @param newsIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNewsByNewsIds(Long[] newsIds);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.fastbee.iot.domain.OauthClientDetails;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 云云对接Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-02-07
|
||||
*/
|
||||
@Repository
|
||||
public interface OauthClientDetailsMapper
|
||||
{
|
||||
/**
|
||||
* 查询云云对接
|
||||
*
|
||||
* @param clientId 云云对接主键
|
||||
* @return 云云对接
|
||||
*/
|
||||
public OauthClientDetails selectOauthClientDetailsByClientId(String clientId);
|
||||
|
||||
/**
|
||||
* 查询云云对接列表
|
||||
*
|
||||
* @param oauthClientDetails 云云对接
|
||||
* @return 云云对接集合
|
||||
*/
|
||||
public List<OauthClientDetails> selectOauthClientDetailsList(OauthClientDetails oauthClientDetails);
|
||||
|
||||
/**
|
||||
* 新增云云对接
|
||||
*
|
||||
* @param oauthClientDetails 云云对接
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOauthClientDetails(OauthClientDetails oauthClientDetails);
|
||||
|
||||
/**
|
||||
* 修改云云对接
|
||||
*
|
||||
* @param oauthClientDetails 云云对接
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOauthClientDetails(OauthClientDetails oauthClientDetails);
|
||||
|
||||
/**
|
||||
* 删除云云对接
|
||||
*
|
||||
* @param clientId 云云对接主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOauthClientDetailsByClientId(String clientId);
|
||||
|
||||
/**
|
||||
* 批量删除云云对接
|
||||
*
|
||||
* @param clientIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOauthClientDetailsByClientIds(String[] clientIds);
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.fastbee.iot.domain.ProductAuthorize;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 产品授权码Mapper接口
|
||||
*
|
||||
* @author kami
|
||||
* @date 2022-04-11
|
||||
*/
|
||||
@Repository
|
||||
public interface ProductAuthorizeMapper
|
||||
{
|
||||
/**
|
||||
* 查询产品授权码
|
||||
*
|
||||
* @param authorizeId 产品授权码主键
|
||||
* @return 产品授权码
|
||||
*/
|
||||
public ProductAuthorize selectProductAuthorizeByAuthorizeId(Long authorizeId);
|
||||
|
||||
/**
|
||||
* 查询产品授权码列表
|
||||
*
|
||||
* @param productAuthorize 产品授权码
|
||||
* @return 产品授权码集合
|
||||
*/
|
||||
public List<ProductAuthorize> selectProductAuthorizeList(ProductAuthorize productAuthorize);
|
||||
|
||||
/**
|
||||
* 新增产品授权码
|
||||
*
|
||||
* @param productAuthorize 产品授权码
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProductAuthorize(ProductAuthorize productAuthorize);
|
||||
|
||||
/**
|
||||
* 修改产品授权码
|
||||
*
|
||||
* @param productAuthorize 产品授权码
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProductAuthorize(ProductAuthorize productAuthorize);
|
||||
|
||||
/**
|
||||
* 删除产品授权码
|
||||
*
|
||||
* @param authorizeId 产品授权码主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProductAuthorizeByAuthorizeId(Long authorizeId);
|
||||
|
||||
/**
|
||||
* 批量删除产品授权码
|
||||
*
|
||||
* @param authorizeIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProductAuthorizeByAuthorizeIds(Long[] authorizeIds);
|
||||
|
||||
/**
|
||||
* 通过产品ID批量删除产品授权码
|
||||
*
|
||||
* @param productIds 产品ID数组
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProductAuthorizeByProductIds(Long[] productIds);
|
||||
|
||||
/**
|
||||
* 批量新增产品授权码
|
||||
* @param list
|
||||
* @return
|
||||
*/
|
||||
public int insertBatchAuthorize(List<ProductAuthorize> list);
|
||||
|
||||
/**
|
||||
* 根据授权码查询一条未绑定的授权码
|
||||
* @param authorize
|
||||
* @return
|
||||
*/
|
||||
ProductAuthorize selectFirstAuthorizeByAuthorizeCode(ProductAuthorize authorize);
|
||||
|
||||
/**
|
||||
* 根据产品id查询产品授权码
|
||||
* @param productId 产品id
|
||||
* @return
|
||||
*/
|
||||
List<ProductAuthorize> selectProductAuthorizeListByProductId(Long productId);
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import com.fastbee.iot.domain.Product;
|
||||
import com.fastbee.iot.model.ChangeProductStatusModel;
|
||||
import com.fastbee.iot.model.IdAndName;
|
||||
import com.fastbee.iot.model.ProductCode;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Repository
|
||||
public interface ProductMapper
|
||||
{
|
||||
/**
|
||||
* 查询产品
|
||||
*
|
||||
* @param productId 产品主键
|
||||
* @return 产品
|
||||
*/
|
||||
public Product selectProductByProductId(Long productId);
|
||||
|
||||
/**
|
||||
* 查询产品列表
|
||||
*
|
||||
* @param product 产品
|
||||
* @return 产品集合
|
||||
*/
|
||||
public List<Product> selectProductList(Product product);
|
||||
|
||||
/**
|
||||
* 查询产品简短列表
|
||||
*
|
||||
* @param product 产品
|
||||
* @return 产品集合
|
||||
*/
|
||||
public List<IdAndName> selectProductShortList(Product product);
|
||||
|
||||
/**
|
||||
* 新增产品
|
||||
*
|
||||
* @param product 产品
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProduct(Product product);
|
||||
|
||||
/**
|
||||
* 修改产品
|
||||
*
|
||||
* @param product 产品
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProduct(Product product);
|
||||
|
||||
/**
|
||||
* 更新产品状态,1-未发布,2-已发布
|
||||
*
|
||||
* @param model
|
||||
* @return 结果
|
||||
*/
|
||||
public int changeProductStatus(ChangeProductStatusModel model);
|
||||
|
||||
/**
|
||||
* 修改物模型JSON
|
||||
*
|
||||
* @param product 产品
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateThingsModelJson(Product product);
|
||||
|
||||
/**
|
||||
* 删除产品
|
||||
*
|
||||
* @param productId 产品主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProductByProductId(Long productId);
|
||||
|
||||
/**
|
||||
* 批量删除产品
|
||||
*
|
||||
* @param productIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProductByProductIds(Long[] productIds);
|
||||
|
||||
/**
|
||||
* 批量删除产品物模型
|
||||
*
|
||||
* @param productIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProductThingsModelByProductIds(Long[] productIds);
|
||||
|
||||
|
||||
/**
|
||||
* 产品下的设备数量
|
||||
* @param productIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deviceCountInProducts(Long[] productIds);
|
||||
|
||||
/**
|
||||
* 产品下的物模型数量
|
||||
* @param productId 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int thingsCountInProduct(Long productId);
|
||||
|
||||
/**
|
||||
* 产品下的物模型标识符重复数
|
||||
* @param productId 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int thingsRepeatCountInProduct(Long productId);
|
||||
|
||||
/**
|
||||
* 根据设备编号查询产品信息
|
||||
* @param serialNumber 设备编号
|
||||
* @return 结果
|
||||
*/
|
||||
public Product getProductBySerialNumber(String serialNumber);
|
||||
|
||||
/**
|
||||
* 根据设备编号查询协议编号
|
||||
* @param serialNumber 设备编号
|
||||
* @return 协议编号
|
||||
*/
|
||||
public ProductCode getProtocolBySerialNumber(String serialNumber);
|
||||
|
||||
/**
|
||||
* 根据产品id获取协议编号
|
||||
* @param productId 产品id
|
||||
* @return 协议编号
|
||||
*/
|
||||
public String getProtocolByProductId(Long productId);
|
||||
|
||||
/**
|
||||
* 根据模板id查询所有使用的产品
|
||||
* @param templeId 模板id
|
||||
* @return
|
||||
*/
|
||||
public List<Product> selectByTempleId(Long templeId);
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import com.fastbee.iot.domain.Protocol;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 协议管理Mapper
|
||||
* @author gsb
|
||||
* @date 2022/10/19 15:46
|
||||
*/
|
||||
@Repository
|
||||
public interface ProtocolMapper {
|
||||
|
||||
|
||||
/**
|
||||
* 查询协议
|
||||
*
|
||||
* @param id 协议主键
|
||||
* @return 协议
|
||||
*/
|
||||
public Protocol selectProtocolById(Long id);
|
||||
|
||||
/**
|
||||
* 查询协议列表
|
||||
*
|
||||
* @param protocol 协议
|
||||
* @return 协议集合
|
||||
*/
|
||||
public List<Protocol> selectProtocolList(Protocol protocol);
|
||||
|
||||
/**
|
||||
* 新增协议
|
||||
*
|
||||
* @param protocol 协议
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProtocol(Protocol protocol);
|
||||
|
||||
/**
|
||||
* 修改协议
|
||||
*
|
||||
* @param protocol 协议
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProtocol(Protocol protocol);
|
||||
|
||||
/**
|
||||
* 删除协议
|
||||
*
|
||||
* @param id 协议主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProtocolById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除协议
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProtocolByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 获取所有唯一协议
|
||||
* @param protocol
|
||||
* @return
|
||||
*/
|
||||
public List<Protocol> selectByUnion(Protocol protocol);
|
||||
|
||||
/**
|
||||
* 获取所有可用协议
|
||||
* @param status
|
||||
* @param delFlag
|
||||
* @return
|
||||
*/
|
||||
public List<Protocol> selectAll(@Param("status") Integer status, @Param("delFlag") Integer delFlag);
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.fastbee.iot.domain.SocialPlatform;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 第三方登录平台控制Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2022-04-11
|
||||
*/
|
||||
@Repository
|
||||
public interface SocialPlatformMapper
|
||||
{
|
||||
/**
|
||||
* 查询第三方登录平台控制
|
||||
*
|
||||
* @param socialPlatformId 第三方登录平台控制主键
|
||||
* @return 第三方登录平台控制
|
||||
*/
|
||||
public SocialPlatform selectSocialPlatformBySocialPlatformId(Long socialPlatformId);
|
||||
|
||||
/**
|
||||
* 查询第三方登录平台控制
|
||||
*
|
||||
* @param platform 第三方登录平台名称
|
||||
* @return 第三方登录平台控制
|
||||
*/
|
||||
public SocialPlatform selectSocialPlatformByPlatform(String platform);
|
||||
|
||||
/**
|
||||
* 查询第三方登录平台控制列表
|
||||
*
|
||||
* @param socialPlatform 第三方登录平台控制
|
||||
* @return 第三方登录平台控制集合
|
||||
*/
|
||||
public List<SocialPlatform> selectSocialPlatformList(SocialPlatform socialPlatform);
|
||||
|
||||
/**
|
||||
* 新增第三方登录平台控制
|
||||
*
|
||||
* @param socialPlatform 第三方登录平台控制
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSocialPlatform(SocialPlatform socialPlatform);
|
||||
|
||||
/**
|
||||
* 修改第三方登录平台控制
|
||||
*
|
||||
* @param socialPlatform 第三方登录平台控制
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSocialPlatform(SocialPlatform socialPlatform);
|
||||
|
||||
/**
|
||||
* 删除第三方登录平台控制
|
||||
*
|
||||
* @param socialPlatformId 第三方登录平台控制主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSocialPlatformBySocialPlatformId(Long socialPlatformId);
|
||||
|
||||
/**
|
||||
* 批量删除第三方登录平台控制
|
||||
*
|
||||
* @param socialPlatformIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSocialPlatformBySocialPlatformIds(Long[] socialPlatformIds);
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import com.fastbee.iot.domain.SocialUser;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户第三方用户信息Mapper接口
|
||||
*
|
||||
* @author json
|
||||
* @date 2022-04-18
|
||||
*/
|
||||
@Repository
|
||||
public interface SocialUserMapper
|
||||
{
|
||||
/**
|
||||
* 查询用户第三方用户信息
|
||||
*
|
||||
* @param socialUserId 用户第三方用户信息主键
|
||||
* @return 用户第三方用户信息
|
||||
*/
|
||||
public SocialUser selectSocialUserBySocialUserId(Long socialUserId);
|
||||
|
||||
/**
|
||||
* 查询用户第三方用户信息列表
|
||||
*
|
||||
* @param socialUser 用户第三方用户信息
|
||||
* @return 用户第三方用户信息集合
|
||||
*/
|
||||
public List<SocialUser> selectSocialUserList(SocialUser socialUser);
|
||||
|
||||
/**
|
||||
* 新增用户第三方用户信息
|
||||
*
|
||||
* @param socialUser 用户第三方用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSocialUser(SocialUser socialUser);
|
||||
|
||||
/**
|
||||
* 修改用户第三方用户信息
|
||||
*
|
||||
* @param socialUser 用户第三方用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSocialUser(SocialUser socialUser);
|
||||
|
||||
/**
|
||||
* 删除用户第三方用户信息
|
||||
*
|
||||
* @param socialUserId 用户第三方用户信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSocialUserBySocialUserId(Long socialUserId);
|
||||
|
||||
/**
|
||||
* 批量删除用户第三方用户信息
|
||||
*
|
||||
* @param socialUserIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSocialUserBySocialUserIds(Long[] socialUserIds);
|
||||
|
||||
/**
|
||||
* 根据openId和unionId获取用户第三方信息
|
||||
* @param openId
|
||||
* @param unionId
|
||||
* @return
|
||||
*/
|
||||
SocialUser selectOneByOpenIdAndUnionId(@Param("openId") String openId, @Param("unionId") String unionId);
|
||||
|
||||
/**
|
||||
* 通过unionId查询
|
||||
* @param unionId
|
||||
* @return
|
||||
*/
|
||||
Long selectSysUserIdByUnionId(String unionId);
|
||||
|
||||
/**
|
||||
* 通过系统用户id查询已绑定信息
|
||||
* @param sysUserId 系统用户id
|
||||
* @return
|
||||
*/
|
||||
List<SocialUser> selectBySysUserId(Long sysUserId);
|
||||
|
||||
/**
|
||||
* 取消三方登录相关信息
|
||||
* @param sysUserId 系统用户id
|
||||
* @param sourceClientList 来源具体平台
|
||||
* @return
|
||||
*/
|
||||
int deleteBySysUserIdAndSourceClient(@Param("sysUserId") Long sysUserId, @Param("sourceClientList") List<String> sourceClientList);
|
||||
|
||||
/**
|
||||
* 取消三方登录相关信息
|
||||
* @param sysUserIds 系统用户id集合
|
||||
* @param sourceClientList 来源具体平台
|
||||
* @return
|
||||
*/
|
||||
int deleteBySysUserIdsAndSourceClient(@Param("sysUserIds") Long[] sysUserIds, @Param("sourceClientList") List<String> sourceClientList);
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import com.fastbee.common.core.iot.response.IdentityAndName;
|
||||
import com.fastbee.iot.domain.ThingsModel;
|
||||
import com.fastbee.iot.model.ThingsModelPerm;
|
||||
import com.fastbee.iot.model.ThingsModels.ThingsItems;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 物模型Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Repository
|
||||
public interface ThingsModelMapper
|
||||
{
|
||||
/**
|
||||
* 查询物模型
|
||||
*
|
||||
* @param modelId 物模型主键
|
||||
* @return 物模型
|
||||
*/
|
||||
public ThingsModel selectThingsModelByModelId(Long modelId);
|
||||
|
||||
/**
|
||||
* 查询单个物模型
|
||||
* @param model 物模型
|
||||
* @return 单个物模型
|
||||
*/
|
||||
public ThingsModel selectSingleThingsModel(ThingsModel model);
|
||||
|
||||
/**
|
||||
* 查询物模型列表
|
||||
*
|
||||
* @param thingsModel 物模型
|
||||
* @return 物模型集合
|
||||
*/
|
||||
public List<ThingsModel> selectThingsModelList(ThingsModel thingsModel);
|
||||
|
||||
/**
|
||||
* 查询物模型对应分享设备权限列表
|
||||
*
|
||||
* @param productId 产品ID
|
||||
* @return 物模型集合
|
||||
*/
|
||||
public List<ThingsModelPerm> selectThingsModelPermList(Long productId);
|
||||
|
||||
/**
|
||||
* 查询物模型列表-轮询
|
||||
*
|
||||
* @param thingsModel 物模型
|
||||
* @return 物模型集合
|
||||
*/
|
||||
public List<IdentityAndName> selectThingsModelListCache(ThingsModel thingsModel);
|
||||
|
||||
/**
|
||||
* 根据产品ID数组获取物模型列表
|
||||
* @param modelIds
|
||||
* @return
|
||||
*/
|
||||
public List<ThingsModel> selectThingsModelListByProductIds(Long[] modelIds);
|
||||
|
||||
/**
|
||||
* 新增物模型
|
||||
*
|
||||
* @param thingsModel 物模型
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertThingsModel(ThingsModel thingsModel);
|
||||
|
||||
/**
|
||||
* 批量新增物模型
|
||||
* @param thingsModels
|
||||
* @return
|
||||
*/
|
||||
public int insertBatchThingsModel(List<ThingsModel> thingsModels);
|
||||
|
||||
/**
|
||||
* 修改物模型
|
||||
*
|
||||
* @param thingsModel 物模型
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateThingsModel(ThingsModel thingsModel);
|
||||
|
||||
/**
|
||||
* 删除物模型
|
||||
*
|
||||
* @param modelId 物模型主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteThingsModelByModelId(Long modelId);
|
||||
|
||||
/**
|
||||
* 批量删除物模型
|
||||
*
|
||||
* @param modelIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteThingsModelByModelIds(Long[] modelIds);
|
||||
|
||||
/**
|
||||
* 根据产品id删除对应的物模型id
|
||||
* @param productId
|
||||
* @return
|
||||
*/
|
||||
public int deleteThingsModelByProductId(Long productId);
|
||||
|
||||
/**
|
||||
* 查询物模型是否历史存储
|
||||
* @param items
|
||||
* @return
|
||||
*/
|
||||
public List<IdentityAndName> selectThingsModelIsMonitor(ThingsItems items);
|
||||
|
||||
/**
|
||||
* 根据模板id查询从机采集点列表
|
||||
*
|
||||
* @return 变量模板从机采集点集合
|
||||
*/
|
||||
public List<ThingsModel> selectAllByTemplateId(Long templateId);
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.fastbee.iot.mapper;
|
||||
|
||||
import com.fastbee.iot.domain.ThingsModel;
|
||||
import com.fastbee.iot.domain.ThingsModelTemplate;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 通用物模型Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Repository
|
||||
public interface ThingsModelTemplateMapper
|
||||
{
|
||||
/**
|
||||
* 查询通用物模型
|
||||
*
|
||||
* @param templateId 通用物模型主键
|
||||
* @return 通用物模型
|
||||
*/
|
||||
public ThingsModelTemplate selectThingsModelTemplateByTemplateId(Long templateId);
|
||||
|
||||
/**
|
||||
* 根据id数组查询通用物模型集合
|
||||
* @param templateIds
|
||||
* @return
|
||||
*/
|
||||
public List<ThingsModelTemplate> selectThingsModelTemplateByTemplateIds (Long[] templateIds);
|
||||
|
||||
/**
|
||||
* 查询通用物模型列表
|
||||
*
|
||||
* @param thingsModelTemplate 通用物模型
|
||||
* @return 通用物模型集合
|
||||
*/
|
||||
public List<ThingsModelTemplate> selectThingsModelTemplateList(ThingsModelTemplate thingsModelTemplate);
|
||||
|
||||
/**
|
||||
* 新增通用物模型
|
||||
*
|
||||
* @param thingsModelTemplate 通用物模型
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertThingsModelTemplate(ThingsModelTemplate thingsModelTemplate);
|
||||
|
||||
/**
|
||||
* 修改通用物模型
|
||||
*
|
||||
* @param thingsModelTemplate 通用物模型
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateThingsModelTemplate(ThingsModelTemplate thingsModelTemplate);
|
||||
|
||||
|
||||
/**
|
||||
* 根据从机关联id更新模板信息
|
||||
* @param thingsModelTemplate
|
||||
* @return
|
||||
*/
|
||||
public int updateTemplateByTempSlaveId(ThingsModelTemplate thingsModelTemplate);
|
||||
|
||||
/**
|
||||
* 删除通用物模型
|
||||
*
|
||||
* @param templateId 通用物模型主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteThingsModelTemplateByTemplateId(Long templateId);
|
||||
|
||||
/**
|
||||
* 根据采集点模板ID删除通用物模型
|
||||
*
|
||||
* @param templateId 通用物模型主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteThingsModelTemplateByVarTemplateId(Long templateId);
|
||||
|
||||
/**
|
||||
* 批量删除通用物模型
|
||||
*
|
||||
* @param templateIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteThingsModelTemplateByTemplateIds(Long[] templateIds);
|
||||
|
||||
|
||||
/**
|
||||
* 根据模板id查询从机采集点列表
|
||||
*
|
||||
* @return 变量模板从机采集点集合
|
||||
*/
|
||||
public List<ThingsModelTemplate> selectAllByTemplateId(Long templateId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.fastbee.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;
|
||||
|
||||
/** 产品ID */
|
||||
private Long productId;
|
||||
|
||||
/** 产品名称 */
|
||||
private String productName;
|
||||
|
||||
/** 设备ID */
|
||||
private Long deviceId;
|
||||
|
||||
/** 设备名称 */
|
||||
private String deviceName;
|
||||
|
||||
/** 设备编号 */
|
||||
private String serialNumber;
|
||||
|
||||
|
||||
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 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 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;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.fastbee.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,49 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
import com.fastbee.iot.domain.News;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品分类的Id和名称输出
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class CategoryNews
|
||||
{
|
||||
private Long categoryId;
|
||||
|
||||
private String categoryName;
|
||||
|
||||
private List<News> newsList;
|
||||
|
||||
public CategoryNews(){
|
||||
this.newsList=new ArrayList<>();
|
||||
}
|
||||
|
||||
public Long getCategoryId() {
|
||||
return categoryId;
|
||||
}
|
||||
|
||||
public void setCategoryId(Long categoryId) {
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
public String getCategoryName() {
|
||||
return categoryName;
|
||||
}
|
||||
|
||||
public void setCategoryName(String categoryName) {
|
||||
this.categoryName = categoryName;
|
||||
}
|
||||
|
||||
public List<News> getNewsList() {
|
||||
return newsList;
|
||||
}
|
||||
|
||||
public void setNewsList(List<News> newsList) {
|
||||
this.newsList = newsList;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
/**
|
||||
* id和name
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class ChangeProductStatusModel
|
||||
{
|
||||
private Long productId;
|
||||
|
||||
private Integer status;
|
||||
|
||||
private Integer deviceType;
|
||||
|
||||
public Integer getDeviceType() {
|
||||
return deviceType;
|
||||
}
|
||||
|
||||
public void setDeviceType(Integer deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
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,19 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author gsb
|
||||
* @date 2023/4/6 11:57
|
||||
*/
|
||||
@Data
|
||||
public class DataResult {
|
||||
|
||||
private String id;
|
||||
/**值*/
|
||||
private String value;
|
||||
/**时间*/
|
||||
private Date ts;
|
||||
}
|
||||
@@ -0,0 +1,220 @@
|
||||
package com.fastbee.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;
|
||||
|
||||
/** 设备类型(1-直连设备、2-网关子设备、3-网关设备) */
|
||||
private Integer deviceType;
|
||||
|
||||
/** 用户昵称 */
|
||||
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 locationWay;
|
||||
|
||||
/** 设备地址 */
|
||||
private String networkAddress;
|
||||
|
||||
/** 经度 */
|
||||
private BigDecimal longitude;
|
||||
|
||||
/** 纬度 */
|
||||
private BigDecimal latitude;
|
||||
|
||||
/** 是否设备所有者,用于查询 **/
|
||||
private Integer isOwner;
|
||||
|
||||
private Integer subDeviceCount;
|
||||
|
||||
public Integer getSubDeviceCount() {
|
||||
return subDeviceCount;
|
||||
}
|
||||
|
||||
public void setSubDeviceCount(Integer subDeviceCount) {
|
||||
this.subDeviceCount = subDeviceCount;
|
||||
}
|
||||
|
||||
public Integer getLocationWay() {
|
||||
return locationWay;
|
||||
}
|
||||
|
||||
public void setLocationWay(Integer locationWay) {
|
||||
this.locationWay = locationWay;
|
||||
}
|
||||
|
||||
public Integer getIsOwner() {
|
||||
return isOwner;
|
||||
}
|
||||
|
||||
public void setIsOwner(Integer isOwner) {
|
||||
this.isOwner = isOwner;
|
||||
}
|
||||
|
||||
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 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 setDeviceType(Integer deviceType)
|
||||
{
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public Integer getDeviceType()
|
||||
{
|
||||
return deviceType;
|
||||
}
|
||||
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,36 @@
|
||||
package com.fastbee.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,35 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* 设备MQTT连接参数实体类
|
||||
* @author fastb
|
||||
* @date 2023-08-02 17:01
|
||||
*/
|
||||
@Accessors(chain = true)
|
||||
@Data
|
||||
public class DeviceMqttConnectVO {
|
||||
|
||||
/**
|
||||
* 客户端id
|
||||
*/
|
||||
private String clientId;
|
||||
|
||||
/**
|
||||
* 连接用户名
|
||||
*/
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 连接密码
|
||||
*/
|
||||
private String passwd;
|
||||
|
||||
/**
|
||||
* 连接端口号
|
||||
*/
|
||||
private Long port;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
/**
|
||||
* MQTT连接相关参数实体类
|
||||
* @author fastb
|
||||
* @date 2023-08-02 17:09
|
||||
*/
|
||||
public class DeviceMqttVO {
|
||||
|
||||
/**
|
||||
* 设备主键id
|
||||
*/
|
||||
private Long deviceId;
|
||||
|
||||
/**
|
||||
* 设备编号
|
||||
*/
|
||||
private String serialNumber;
|
||||
|
||||
/**
|
||||
* 产品id
|
||||
*/
|
||||
private Long productId;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* mqtt连接账号
|
||||
*/
|
||||
private String mqttAccount;
|
||||
|
||||
/**
|
||||
* mqtt连接密码
|
||||
*/
|
||||
private String mqttPassword;
|
||||
|
||||
/**
|
||||
* 产品密匙
|
||||
*/
|
||||
private String mqttSecret;
|
||||
|
||||
/**
|
||||
* 是否启用授权码(0-否,1-是)
|
||||
*/
|
||||
private Integer isAuthorize;
|
||||
|
||||
/**
|
||||
* 认证方式
|
||||
*/
|
||||
private Integer vertificateMethod;
|
||||
|
||||
public Integer getVertificateMethod() {
|
||||
return vertificateMethod;
|
||||
}
|
||||
|
||||
public void setVertificateMethod(Integer vertificateMethod) {
|
||||
this.vertificateMethod = vertificateMethod;
|
||||
}
|
||||
|
||||
public Long getDeviceId() {
|
||||
return deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(Long deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public Integer getIsAuthorize() {
|
||||
return isAuthorize;
|
||||
}
|
||||
|
||||
public void setIsAuthorize(Integer isAuthorize) {
|
||||
this.isAuthorize = isAuthorize;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class DeviceNumberAndProductId
|
||||
{
|
||||
/** 产品ID,用于自动添加设备 */
|
||||
private Long productId;
|
||||
|
||||
/** 设备编号集合 */
|
||||
private String deviceNumber;
|
||||
|
||||
public DeviceNumberAndProductId(){}
|
||||
|
||||
public DeviceNumberAndProductId(Long productId, String deviceNumber){
|
||||
this.productId=productId;
|
||||
this.deviceNumber=deviceNumber;
|
||||
}
|
||||
|
||||
public Long getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Long productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getDeviceNumber() {
|
||||
return deviceNumber;
|
||||
}
|
||||
|
||||
public void setDeviceNumber(String deviceNumber) {
|
||||
this.deviceNumber = deviceNumber;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author fastb
|
||||
* @date 2023-09-13 11:18
|
||||
*/
|
||||
@Data
|
||||
public class DeviceRelateAlertLogVO {
|
||||
|
||||
/**
|
||||
* 设备ID
|
||||
*/
|
||||
private Long deviceId;
|
||||
|
||||
/**
|
||||
* 设备编号
|
||||
*/
|
||||
private String serialNumber;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
private Long userId;
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class DeviceRelateUserInput
|
||||
{
|
||||
|
||||
/** 用户Id */
|
||||
private Long userId;
|
||||
|
||||
/** 设备编号和产品ID集合 */
|
||||
private List<DeviceNumberAndProductId> deviceNumberAndProductIds;
|
||||
|
||||
public DeviceRelateUserInput(){}
|
||||
|
||||
public DeviceRelateUserInput(Long userId,List<DeviceNumberAndProductId> deviceNumberAndProductIds){
|
||||
this.userId=userId;
|
||||
this.deviceNumberAndProductIds=deviceNumberAndProductIds;
|
||||
}
|
||||
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public List<DeviceNumberAndProductId> getDeviceNumberAndProductIds() {
|
||||
return deviceNumberAndProductIds;
|
||||
}
|
||||
|
||||
public void setDeviceNumberAndProductIds(List<DeviceNumberAndProductId> deviceNumberAndProductIds) {
|
||||
this.deviceNumberAndProductIds = deviceNumberAndProductIds;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,421 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.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;
|
||||
|
||||
/** 设备类型(1-直连设备、2-网关子设备、3-网关设备) */
|
||||
private Integer deviceType;
|
||||
|
||||
/** 用户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;
|
||||
|
||||
private Integer isSimulate;
|
||||
|
||||
/** 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;
|
||||
|
||||
/** 激活时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createTime;
|
||||
|
||||
@Excel(name = "网关设备编号(子设备使用)")
|
||||
private String gwDevCode;
|
||||
|
||||
/** 是否自定义位置 **/
|
||||
private Integer locationWay;
|
||||
|
||||
/** 图片地址 */
|
||||
private String imgUrl;
|
||||
|
||||
/** 是否设备所有者,用于查询 **/
|
||||
private Integer isOwner;
|
||||
|
||||
|
||||
/**子设备数量*/
|
||||
private Integer subDeviceCount;
|
||||
|
||||
/**子设备地址*/
|
||||
private Integer slaveId;
|
||||
/*传输协议*/
|
||||
private String transport;
|
||||
/*设备通讯协议*/
|
||||
private String protocolCode;
|
||||
|
||||
public String getTransport() {
|
||||
return transport;
|
||||
}
|
||||
|
||||
public void setTransport(String transport) {
|
||||
this.transport = transport;
|
||||
}
|
||||
|
||||
public String getProtocolCode() {
|
||||
return protocolCode;
|
||||
}
|
||||
|
||||
public void setProtocolCode(String protocolCode) {
|
||||
this.protocolCode = protocolCode;
|
||||
}
|
||||
|
||||
public Integer getSlaveId() {
|
||||
return slaveId;
|
||||
}
|
||||
|
||||
public void setSlaveId(Integer slaveId) {
|
||||
this.slaveId = slaveId;
|
||||
}
|
||||
|
||||
public Integer getSubDeviceCount() {
|
||||
return subDeviceCount;
|
||||
}
|
||||
|
||||
public void setSubDeviceCount(Integer subDeviceCount) {
|
||||
this.subDeviceCount = subDeviceCount;
|
||||
}
|
||||
|
||||
private List<ThingsModel> thingsModels;
|
||||
|
||||
public List<ThingsModel> getThingsModels() {
|
||||
return thingsModels;
|
||||
}
|
||||
|
||||
public void setThingsModels(List<ThingsModel> thingsModels) {
|
||||
this.thingsModels = thingsModels;
|
||||
}
|
||||
|
||||
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 Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getGwDevCode() {
|
||||
return gwDevCode;
|
||||
}
|
||||
|
||||
public void setGwDevCode(String gwDevCode) {
|
||||
this.gwDevCode = gwDevCode;
|
||||
}
|
||||
|
||||
public Integer getLocationWay() {
|
||||
return locationWay;
|
||||
}
|
||||
|
||||
public void setLocationWay(Integer locationWay) {
|
||||
this.locationWay = locationWay;
|
||||
}
|
||||
|
||||
public Integer getIsOwner() {
|
||||
return isOwner;
|
||||
}
|
||||
|
||||
public void setIsOwner(Integer isOwner) {
|
||||
this.isOwner = isOwner;
|
||||
}
|
||||
|
||||
public String getImgUrl() {
|
||||
return imgUrl;
|
||||
}
|
||||
|
||||
public void setImgUrl(String imgUrl) {
|
||||
this.imgUrl = imgUrl;
|
||||
}
|
||||
|
||||
public Integer getIsSimulate() {
|
||||
return isSimulate;
|
||||
}
|
||||
|
||||
public void setIsSimulate(Integer isSimulate) {
|
||||
this.isSimulate = isSimulate;
|
||||
}
|
||||
|
||||
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 setDeviceType(Integer deviceType)
|
||||
{
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public Integer getDeviceType()
|
||||
{
|
||||
return deviceType;
|
||||
}
|
||||
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,101 @@
|
||||
package com.fastbee.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 DeviceStatistic
|
||||
{
|
||||
/** 设备数量 **/
|
||||
private int deviceCount;
|
||||
|
||||
/** 设备数量 **/
|
||||
private int deviceOnlineCount;
|
||||
|
||||
/** 产品数量 **/
|
||||
private int productCount;
|
||||
|
||||
/** 告警 **/
|
||||
private long alertCount;
|
||||
|
||||
/** 属性上报 **/
|
||||
private long propertyCount;
|
||||
|
||||
/** 功能上报 **/
|
||||
private long functionCount;
|
||||
|
||||
/** 事件上报 **/
|
||||
private long eventCount;
|
||||
|
||||
/** 监测数据上报 **/
|
||||
private long monitorCount;
|
||||
|
||||
public int getDeviceOnlineCount() {
|
||||
return deviceOnlineCount;
|
||||
}
|
||||
|
||||
public void setDeviceOnlineCount(int deviceOnlineCount) {
|
||||
this.deviceOnlineCount = deviceOnlineCount;
|
||||
}
|
||||
|
||||
public long getMonitorCount() {
|
||||
return monitorCount;
|
||||
}
|
||||
|
||||
public void setMonitorCount(long monitorCount) {
|
||||
this.monitorCount = monitorCount;
|
||||
}
|
||||
|
||||
public int getDeviceCount() {
|
||||
return deviceCount;
|
||||
}
|
||||
|
||||
public void setDeviceCount(int deviceCount) {
|
||||
this.deviceCount = deviceCount;
|
||||
}
|
||||
|
||||
public int getProductCount() {
|
||||
return productCount;
|
||||
}
|
||||
|
||||
public void setProductCount(int productCount) {
|
||||
this.productCount = productCount;
|
||||
}
|
||||
|
||||
public long getAlertCount() {
|
||||
return alertCount;
|
||||
}
|
||||
|
||||
public void setAlertCount(long alertCount) {
|
||||
this.alertCount = alertCount;
|
||||
}
|
||||
|
||||
public long getPropertyCount() {
|
||||
return propertyCount;
|
||||
}
|
||||
|
||||
public void setPropertyCount(long propertyCount) {
|
||||
this.propertyCount = propertyCount;
|
||||
}
|
||||
|
||||
public long getFunctionCount() {
|
||||
return functionCount;
|
||||
}
|
||||
|
||||
public void setFunctionCount(long functionCount) {
|
||||
this.functionCount = functionCount;
|
||||
}
|
||||
|
||||
public long getEventCount() {
|
||||
return eventCount;
|
||||
}
|
||||
|
||||
public void setEventCount(long eventCount) {
|
||||
this.eventCount = eventCount;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author bill
|
||||
*/
|
||||
@Data
|
||||
public class HistoryModel {
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date time;
|
||||
|
||||
private String value;
|
||||
|
||||
private String identity;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.fastbee.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.fastbee.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.fastbee.iot.model;
|
||||
|
||||
import com.fastbee.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.fastbee.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,89 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
/**
|
||||
* 动作
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class MqttAuthenticationModel
|
||||
{
|
||||
/** Mqtt客户端ID */
|
||||
String clientId;
|
||||
|
||||
/** Mqtt用户名 */
|
||||
String userName;
|
||||
|
||||
/** Mqtt密码 */
|
||||
String password;
|
||||
|
||||
/** 设备编号 */
|
||||
String deviceNumber;
|
||||
|
||||
/** 产品ID */
|
||||
Long productId;
|
||||
|
||||
/** 设备关联的用户ID */
|
||||
Long userId;
|
||||
|
||||
public MqttAuthenticationModel(String clientid,String username,String password,String deviceNumber ,Long productId,Long userId){
|
||||
this.clientId=clientid;
|
||||
this.userName=username;
|
||||
this.password=password;
|
||||
this.deviceNumber=deviceNumber;
|
||||
this.productId=productId;
|
||||
this.userId=userId;
|
||||
}
|
||||
public MqttAuthenticationModel(String clientid,String username,String password){
|
||||
this.clientId=clientid;
|
||||
this.userName=username;
|
||||
this.password=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;
|
||||
}
|
||||
|
||||
public String getDeviceNumber() {
|
||||
return deviceNumber;
|
||||
}
|
||||
|
||||
public void setDeviceNumber(String deviceNumber) {
|
||||
this.deviceNumber = deviceNumber;
|
||||
}
|
||||
|
||||
public Long getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Long productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.fastbee.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 Long 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 Long getConnected_at() {
|
||||
return connected_at;
|
||||
}
|
||||
|
||||
public void setConnected_at(Long connected_at) {
|
||||
this.connected_at = connected_at;
|
||||
}
|
||||
|
||||
public String getReason() {
|
||||
return reason;
|
||||
}
|
||||
|
||||
public void setReason(String reason) {
|
||||
this.reason = reason;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.fastbee.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 MqttInfoModel
|
||||
{
|
||||
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,40 @@
|
||||
package com.fastbee.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,137 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
|
||||
public class ProductAuthenticateModel {
|
||||
/** 产品分类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;
|
||||
|
||||
/** 是否启用授权码(0-否,1-是) */
|
||||
private Integer isAuthorize;
|
||||
|
||||
/** 设备编号 */
|
||||
private String serialNumber;
|
||||
|
||||
/** mqtt账号 */
|
||||
private String mqttAccount;
|
||||
|
||||
/** mqtt密码 */
|
||||
private String mqttPassword;
|
||||
|
||||
/** 产品秘钥 */
|
||||
private String mqttSecret;
|
||||
|
||||
private int vertificateMethod;
|
||||
|
||||
public int getVertificateMethod() {
|
||||
return vertificateMethod;
|
||||
}
|
||||
|
||||
public void setVertificateMethod(int vertificateMethod) {
|
||||
this.vertificateMethod = vertificateMethod;
|
||||
}
|
||||
|
||||
public Integer getIsAuthorize() {
|
||||
return isAuthorize;
|
||||
}
|
||||
|
||||
public void setIsAuthorize(Integer isAuthorize) {
|
||||
this.isAuthorize = isAuthorize;
|
||||
}
|
||||
|
||||
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,30 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
/**
|
||||
* 批量新增产品授权码VO
|
||||
*
|
||||
* @author Venus Zhang
|
||||
* @create 2022-04-11 15:04
|
||||
*/
|
||||
|
||||
public class ProductAuthorizeVO {
|
||||
|
||||
private Long productId;
|
||||
private int createNum;
|
||||
|
||||
public Long getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Long productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public int getCreateNum() {
|
||||
return createNum;
|
||||
}
|
||||
|
||||
public void setCreateNum(int createNum) {
|
||||
this.createNum = createNum;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author gsb
|
||||
* @date 2023/9/4 17:23
|
||||
*/
|
||||
@Data
|
||||
public class ProductCode {
|
||||
|
||||
/**
|
||||
* 产品id
|
||||
*/
|
||||
private Long productId;
|
||||
/**
|
||||
* 协议编号
|
||||
*/
|
||||
private String protocolCode;
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
package com.fastbee.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,21 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author fastb
|
||||
* @date 2023-08-17 11:46
|
||||
*/
|
||||
@Data
|
||||
public class RegisterUserOutput {
|
||||
|
||||
/**
|
||||
* 错误信息
|
||||
*/
|
||||
private String msg;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private Long sysUserId;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 数据定义
|
||||
*
|
||||
* @author bill
|
||||
*/
|
||||
@Data
|
||||
public class Specs {
|
||||
|
||||
private String id;
|
||||
private String name;
|
||||
private Integer isMonitor;
|
||||
private Integer slaveId;
|
||||
private Integer isChart;
|
||||
private Integer isHistory;
|
||||
private String datatype;
|
||||
/**
|
||||
* 计算公式
|
||||
*/
|
||||
private String formula;
|
||||
|
||||
|
||||
@Data
|
||||
static class Datatype {
|
||||
|
||||
private String unit;
|
||||
private Long min;
|
||||
private Long max;
|
||||
private Integer step;
|
||||
private String type;
|
||||
private String trueText;
|
||||
private String falseText;
|
||||
private EnumList enumList;
|
||||
}
|
||||
|
||||
@Data
|
||||
static class EnumList{
|
||||
private String text;
|
||||
private String value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.fastbee.iot.model.ThingsModelItem;
|
||||
|
||||
public class ArrayModelOutput extends ThingsModelItemBase
|
||||
{
|
||||
private String arrayType;
|
||||
|
||||
private Integer arrayCount;
|
||||
|
||||
public Integer getArrayCount() {
|
||||
return arrayCount;
|
||||
}
|
||||
|
||||
public void setArrayCount(Integer arrayCount) {
|
||||
this.arrayCount = arrayCount;
|
||||
}
|
||||
|
||||
public String getArrayType() {
|
||||
return arrayType;
|
||||
}
|
||||
|
||||
public void setArrayType(String arrayType) {
|
||||
this.arrayType = arrayType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.fastbee.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,161 @@
|
||||
package com.fastbee.iot.model.ThingsModelItem;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
public class Datatype
|
||||
{
|
||||
/** 数据类型 */
|
||||
private String type;
|
||||
|
||||
private String falseText;
|
||||
|
||||
private String trueText;
|
||||
|
||||
private BigDecimal min;
|
||||
|
||||
private BigDecimal max;
|
||||
|
||||
private BigDecimal step;
|
||||
|
||||
private String unit;
|
||||
|
||||
private String arrayType;
|
||||
|
||||
private Integer arrayCount;
|
||||
|
||||
private String showWay;
|
||||
|
||||
private int maxLength;
|
||||
|
||||
private List<EnumItem> enumList;
|
||||
|
||||
private List<ThingsModel> params;
|
||||
|
||||
private List<ThingsModel>[] arrayParams;
|
||||
|
||||
public Datatype(){
|
||||
falseText="";
|
||||
trueText="";
|
||||
min= BigDecimal.valueOf(0);
|
||||
max= BigDecimal.valueOf(100);
|
||||
step= BigDecimal.valueOf(1);
|
||||
unit="";
|
||||
arrayType="";
|
||||
arrayCount=0;
|
||||
maxLength=1024;
|
||||
}
|
||||
|
||||
public List<ThingsModel>[] getArrayParams() {
|
||||
return arrayParams;
|
||||
}
|
||||
|
||||
public void setArrayParams(List<ThingsModel>[] arrayParams) {
|
||||
this.arrayParams = arrayParams;
|
||||
}
|
||||
|
||||
public List<ThingsModel> getParams() {
|
||||
return params;
|
||||
}
|
||||
|
||||
public void setParams(List<ThingsModel> params) {
|
||||
this.params = params;
|
||||
}
|
||||
|
||||
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 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;
|
||||
}
|
||||
|
||||
public String getArrayType() {
|
||||
return arrayType;
|
||||
}
|
||||
|
||||
public void setArrayType(String arrayType) {
|
||||
this.arrayType = arrayType;
|
||||
}
|
||||
|
||||
public String getShowWay() {
|
||||
return showWay;
|
||||
}
|
||||
|
||||
public void setShowWay(String showWay) {
|
||||
this.showWay = showWay;
|
||||
}
|
||||
|
||||
public Integer getArrayCount() {
|
||||
return arrayCount;
|
||||
}
|
||||
|
||||
public void setArrayCount(Integer arrayCount) {
|
||||
this.arrayCount = arrayCount;
|
||||
}
|
||||
|
||||
public int getMaxLength() {
|
||||
return maxLength;
|
||||
}
|
||||
|
||||
public void setMaxLength(int maxLength) {
|
||||
this.maxLength = maxLength;
|
||||
}
|
||||
|
||||
public List<EnumItem> getEnumList() {
|
||||
return enumList;
|
||||
}
|
||||
|
||||
public void setEnumList(List<EnumItem> enumList) {
|
||||
this.enumList = enumList;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.fastbee.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,27 @@
|
||||
package com.fastbee.iot.model.ThingsModelItem;
|
||||
|
||||
|
||||
public 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,23 @@
|
||||
package com.fastbee.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.fastbee.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.fastbee.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,44 @@
|
||||
package com.fastbee.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;
|
||||
|
||||
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.fastbee.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,167 @@
|
||||
package com.fastbee.iot.model.ThingsModelItem;
|
||||
|
||||
public class ThingsModel
|
||||
{
|
||||
/** 物模型唯一标识符 */
|
||||
private String id;
|
||||
/** 物模型名称 */
|
||||
private String name;
|
||||
/** 物模型值 */
|
||||
private String value;
|
||||
/** 影子值 */
|
||||
private String shadow;
|
||||
/** 是否首页显示(0-否,1-是) */
|
||||
private Integer isChart;
|
||||
/** 是否实时监测(0-否,1-是) */
|
||||
private Integer isMonitor;
|
||||
/** 是否实时监测(0-否,1-是) */
|
||||
private Integer isReadonly;
|
||||
/** 是否历史存储(0-否,1-是) */
|
||||
private Integer isHistory;
|
||||
/** 是否设备分享权限(0-否,1-是) */
|
||||
private Integer isSharePerm;
|
||||
/** 类型 1=属性,2=功能,3=事件 */
|
||||
private Integer type;
|
||||
/** 排序 */
|
||||
private Integer order;
|
||||
/** 数据类型 */
|
||||
private Datatype datatype;
|
||||
|
||||
/**子设备编号*/
|
||||
private Integer slaveId;
|
||||
|
||||
private String regId;
|
||||
|
||||
private String ts;
|
||||
|
||||
public ThingsModel(){
|
||||
value="";
|
||||
shadow="";
|
||||
order=0;
|
||||
isMonitor=0;
|
||||
isHistory=0;
|
||||
isReadonly=0;
|
||||
isChart=0;
|
||||
isSharePerm=0;
|
||||
}
|
||||
|
||||
public String getTs() {
|
||||
return ts;
|
||||
}
|
||||
|
||||
public void setTs(String ts) {
|
||||
this.ts = ts;
|
||||
}
|
||||
|
||||
public String getRegId() {
|
||||
return regId;
|
||||
}
|
||||
|
||||
public void setRegId(String regId) {
|
||||
this.regId = regId;
|
||||
}
|
||||
|
||||
public Integer getSlaveId() {
|
||||
return slaveId;
|
||||
}
|
||||
|
||||
public void setSlaveId(Integer slaveId) {
|
||||
this.slaveId = slaveId;
|
||||
}
|
||||
|
||||
public Integer getIsReadonly() {
|
||||
return isReadonly;
|
||||
}
|
||||
|
||||
public void setIsReadonly(Integer isReadonly) {
|
||||
this.isReadonly = isReadonly;
|
||||
}
|
||||
|
||||
public Integer getOrder() {
|
||||
return order;
|
||||
}
|
||||
|
||||
public void setOrder(Integer order) {
|
||||
this.order = order;
|
||||
}
|
||||
|
||||
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 String getShadow() {
|
||||
return shadow;
|
||||
}
|
||||
|
||||
public void setShadow(String shadow) {
|
||||
this.shadow = shadow;
|
||||
}
|
||||
|
||||
public Integer getIsHistory() {
|
||||
return isHistory;
|
||||
}
|
||||
|
||||
public void setIsHistory(Integer isHistory) {
|
||||
this.isHistory = isHistory;
|
||||
}
|
||||
|
||||
public Integer getIsSharePerm() {
|
||||
return isSharePerm;
|
||||
}
|
||||
|
||||
public void setIsSharePerm(Integer isSharePerm) {
|
||||
this.isSharePerm = isSharePerm;
|
||||
}
|
||||
|
||||
public Integer getIsChart() {
|
||||
return isChart;
|
||||
}
|
||||
|
||||
public void setIsChart(Integer isChart) {
|
||||
this.isChart = isChart;
|
||||
}
|
||||
|
||||
public Integer getIsMonitor() {
|
||||
return isMonitor;
|
||||
}
|
||||
|
||||
public void setIsMonitor(Integer isMonitor) {
|
||||
this.isMonitor = isMonitor;
|
||||
}
|
||||
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Datatype getDatatype() {
|
||||
return datatype;
|
||||
}
|
||||
|
||||
public void setDatatype(Datatype datatype) {
|
||||
this.datatype = datatype;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
package com.fastbee.iot.model.ThingsModelItem;
|
||||
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
|
||||
public class ThingsModelItemBase
|
||||
{
|
||||
/** 物模型唯一标识符 */
|
||||
private String id;
|
||||
/** 物模型名称 */
|
||||
private String name;
|
||||
/** 物模型值 */
|
||||
private String value;
|
||||
/** 是否首页显示(0-否,1-是) */
|
||||
private Integer isChart;
|
||||
/** 是否实时监测(0-否,1-是) */
|
||||
private Integer isMonitor;
|
||||
/** 类型 1=属性,2=功能,3=事件 */
|
||||
private Integer type;
|
||||
/** 数据类型 */
|
||||
private String dataType;
|
||||
/** 影子值 */
|
||||
private String shadow;
|
||||
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getShadow() {
|
||||
return shadow;
|
||||
}
|
||||
|
||||
public void setShadow(String shadow) {
|
||||
this.shadow = shadow;
|
||||
}
|
||||
|
||||
public String getDataType() {
|
||||
return dataType;
|
||||
}
|
||||
|
||||
public void setDataType(String dataType) {
|
||||
this.dataType = 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 String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public Integer getIsChart() {
|
||||
return isChart;
|
||||
}
|
||||
|
||||
public void setIsChart(Integer isChart) {
|
||||
this.isChart = isChart;
|
||||
}
|
||||
|
||||
public Integer getIsMonitor() {
|
||||
return isMonitor;
|
||||
}
|
||||
|
||||
public void setIsMonitor(Integer isMonitor) {
|
||||
this.isMonitor = isMonitor;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2023-01-14
|
||||
*/
|
||||
public class ThingsModelPerm
|
||||
{
|
||||
/** 物模型名称 */
|
||||
private String modelName;
|
||||
|
||||
/** 标识符,产品下唯一 */
|
||||
private String identifier;
|
||||
|
||||
/** 备注信息 */
|
||||
private String remark;
|
||||
|
||||
public String getModelName() {
|
||||
return modelName;
|
||||
}
|
||||
|
||||
public void setModelName(String modelName) {
|
||||
this.modelName = modelName;
|
||||
}
|
||||
|
||||
public String getIdentifier() {
|
||||
return identifier;
|
||||
}
|
||||
|
||||
public void setIdentifier(String identifier) {
|
||||
this.identifier = identifier;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.fastbee.iot.model.ThingsModels;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品分类的Id和名称输出
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Data
|
||||
public class EventDto {
|
||||
/**
|
||||
* 物模型唯一标识符
|
||||
*/
|
||||
private String id;
|
||||
/**
|
||||
* 物模型名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 数据定义
|
||||
*/
|
||||
private JSONObject datatype;
|
||||
|
||||
/**
|
||||
* 从机编号
|
||||
*/
|
||||
private Integer SlaveId;
|
||||
/**
|
||||
* 计算公式
|
||||
*/
|
||||
private String formula;
|
||||
|
||||
private Integer isParams;
|
||||
|
||||
private Integer isHistory;
|
||||
|
||||
/**
|
||||
* 从机编号
|
||||
*/
|
||||
private Long tempSlaveId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.fastbee.iot.model.ThingsModels;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 产品分类的Id和名称输出
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Data
|
||||
public class FunctionDto
|
||||
{
|
||||
/** 物模型唯一标识符 */
|
||||
private String id;
|
||||
/** 物模型名称 */
|
||||
private String name;
|
||||
/** 是否首页显示(0-否,1-是) */
|
||||
private Integer isChart;
|
||||
/** 是否只读 */
|
||||
private Integer isReadonly;
|
||||
/** 是否历史存储 */
|
||||
private Integer isHistory;
|
||||
/** 排序 */
|
||||
private Integer order;
|
||||
/** 数据定义 */
|
||||
private JSONObject datatype;
|
||||
|
||||
/**
|
||||
* 从机编号
|
||||
*/
|
||||
private Integer SlaveId;
|
||||
/**
|
||||
* 计算公式
|
||||
*/
|
||||
private String formula;
|
||||
|
||||
private Integer isParams;
|
||||
|
||||
/**
|
||||
* 从机编号
|
||||
*/
|
||||
private Long tempSlaveId;
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.fastbee.iot.model.ThingsModels;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品分类的Id和名称输出
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@Data
|
||||
public class PropertyDto
|
||||
{
|
||||
/** 物模型唯一标识符 */
|
||||
private String id;
|
||||
/** 物模型名称 */
|
||||
private String name;
|
||||
/** 是否图表展示(0-否,1-是) */
|
||||
private Integer isChart;
|
||||
/** 是否历史存储(0-否,1-是) */
|
||||
private Integer isHistory;
|
||||
/** 是否实时监测(0-否,1-是) */
|
||||
private Integer isMonitor;
|
||||
/** 是否只读 */
|
||||
private Integer isReadonly;
|
||||
/** 排序 */
|
||||
private Integer order;
|
||||
/** 数据定义 */
|
||||
private JSONObject datatype;
|
||||
/**
|
||||
* 计算公式
|
||||
*/
|
||||
private String formula;
|
||||
|
||||
private Integer isParams;
|
||||
/**
|
||||
* 从机编号
|
||||
*/
|
||||
private Integer tempSlaveId;
|
||||
|
||||
private Integer type;
|
||||
/**
|
||||
* 读取寄存器数量
|
||||
*/
|
||||
private Integer quantity;
|
||||
/**
|
||||
* 寄存器#从机
|
||||
*/
|
||||
private String regId;
|
||||
/**
|
||||
* 功能码
|
||||
*/
|
||||
private String code;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String parseType;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.fastbee.iot.model.ThingsModels;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author gsb
|
||||
* @date 2022/10/24 15:45
|
||||
*/
|
||||
@Data
|
||||
public class ThingsItems {
|
||||
|
||||
private List<String> ids;
|
||||
|
||||
private Long productId;
|
||||
|
||||
private Integer slaveId;
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.fastbee.iot.model.ThingsModels;
|
||||
|
||||
import com.fastbee.common.core.thingsModel.ThingsModelSimpleItem;
|
||||
|
||||
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<ThingsModelSimpleItem> properties, List<ThingsModelSimpleItem> functions){
|
||||
this.properties=properties;
|
||||
this.functions=functions;
|
||||
}
|
||||
|
||||
/** 属性 */
|
||||
List<ThingsModelSimpleItem> properties;
|
||||
|
||||
/** 功能 */
|
||||
List<ThingsModelSimpleItem> functions;
|
||||
|
||||
public List<ThingsModelSimpleItem> getProperties() {
|
||||
return properties;
|
||||
}
|
||||
|
||||
public void setProperties(List<ThingsModelSimpleItem> properties) {
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
public List<ThingsModelSimpleItem> getFunctions() {
|
||||
return functions;
|
||||
}
|
||||
|
||||
public void setFunctions(List<ThingsModelSimpleItem> functions) {
|
||||
this.functions = functions;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
package com.fastbee.iot.model.ThingsModels;
|
||||
|
||||
import com.fastbee.iot.model.ThingsModelItem.Datatype;
|
||||
|
||||
/**
|
||||
* 物模型值的项
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class ThingsModelValueItem {
|
||||
/**
|
||||
* 物模型唯一标识符
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 物模型值
|
||||
*/
|
||||
private String value;
|
||||
|
||||
/**
|
||||
* 影子值
|
||||
**/
|
||||
private String shadow;
|
||||
|
||||
/**
|
||||
* 是否为监测值
|
||||
**/
|
||||
private int isMonitor;
|
||||
|
||||
/**
|
||||
* 是否为历史存储
|
||||
**/
|
||||
private int isHistory;
|
||||
|
||||
/**
|
||||
* 是否为图表展示
|
||||
**/
|
||||
private int isChart;
|
||||
|
||||
/**
|
||||
* 是否只读数据
|
||||
**/
|
||||
private int isReadonly;
|
||||
|
||||
/**
|
||||
* 物模型名称
|
||||
**/
|
||||
private String name;
|
||||
|
||||
private Datatype datatype;
|
||||
|
||||
private String ts;
|
||||
|
||||
private Integer tempSlaveId;
|
||||
|
||||
public Integer getTempSlaveId() {
|
||||
return tempSlaveId;
|
||||
}
|
||||
|
||||
public void setTempSlaveId(Integer tempSlaveId) {
|
||||
this.tempSlaveId = tempSlaveId;
|
||||
}
|
||||
|
||||
public int getIsHistory() {
|
||||
return isHistory;
|
||||
}
|
||||
|
||||
public void setIsHistory(int isHistory) {
|
||||
this.isHistory = isHistory;
|
||||
}
|
||||
|
||||
public int getIsChart() {
|
||||
return isChart;
|
||||
}
|
||||
|
||||
public void setIsChart(int isChart) {
|
||||
this.isChart = isChart;
|
||||
}
|
||||
|
||||
public int getIsReadonly() {
|
||||
return isReadonly;
|
||||
}
|
||||
|
||||
public void setIsReadonly(int isReadonly) {
|
||||
this.isReadonly = isReadonly;
|
||||
}
|
||||
|
||||
public Datatype getDatatype() {
|
||||
return datatype;
|
||||
}
|
||||
|
||||
public void setDatatype(Datatype datatype) {
|
||||
this.datatype = datatype;
|
||||
}
|
||||
|
||||
public int getIsMonitor() {
|
||||
return isMonitor;
|
||||
}
|
||||
|
||||
public void setIsMonitor(int isMonitor) {
|
||||
this.isMonitor = isMonitor;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public String getTs() {
|
||||
return ts;
|
||||
}
|
||||
|
||||
public void setTs(String ts) {
|
||||
this.ts = ts;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,196 @@
|
||||
package com.fastbee.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 isChart;
|
||||
|
||||
/** 是否实时监测(0-否,1-是) */
|
||||
private Integer isMonitor;
|
||||
|
||||
private DataType dataType;
|
||||
|
||||
public Integer getIsChart() {
|
||||
return isChart;
|
||||
}
|
||||
|
||||
public void setIsChart(Integer isChart) {
|
||||
this.isChart = isChart;
|
||||
}
|
||||
|
||||
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,160 @@
|
||||
package com.fastbee.iot.model.ThingsModels;
|
||||
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
|
||||
/**
|
||||
* 设备输入物模型值参数
|
||||
*
|
||||
* @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;
|
||||
|
||||
/** 用户ID */
|
||||
private Long userId;
|
||||
|
||||
/** 用户昵称 */
|
||||
private String userName;
|
||||
|
||||
/** 租户ID */
|
||||
private Long tenantId;
|
||||
|
||||
/** 租户名称 */
|
||||
private String tenantName;
|
||||
|
||||
/** 设备物模型值 **/
|
||||
private String thingsModelValue;
|
||||
|
||||
private int isSimulate;
|
||||
|
||||
/**子设备地址*/
|
||||
private Integer slaveId;
|
||||
|
||||
public Integer getSlaveId() {
|
||||
return slaveId;
|
||||
}
|
||||
|
||||
public void setSlaveId(Integer slaveId) {
|
||||
this.slaveId = slaveId;
|
||||
}
|
||||
|
||||
public int getIsSimulate() {
|
||||
return isSimulate;
|
||||
}
|
||||
|
||||
public void setIsSimulate(int isSimulate) {
|
||||
this.isSimulate = isSimulate;
|
||||
}
|
||||
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public Long getTenantId() {
|
||||
return tenantId;
|
||||
}
|
||||
|
||||
public void setTenantId(Long tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public String getTenantName() {
|
||||
return tenantName;
|
||||
}
|
||||
|
||||
public void setTenantName(String tenantName) {
|
||||
this.tenantName = tenantName;
|
||||
}
|
||||
|
||||
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.fastbee.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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.fastbee.iot.model.ThingsModels;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* redis缓存物模型值
|
||||
* @author gsb
|
||||
* @date 2023/6/3 13:48
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class ValueItem {
|
||||
|
||||
public ValueItem(String id, Integer slaveId, String regArr) {
|
||||
this.id = id;
|
||||
this.slaveId = slaveId;
|
||||
this.regArr = regArr;
|
||||
}
|
||||
|
||||
/**
|
||||
* 标识符
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 物模型值
|
||||
*/
|
||||
private String value;
|
||||
|
||||
/**
|
||||
* 影子值
|
||||
**/
|
||||
private String shadow;
|
||||
|
||||
/**
|
||||
* 物模型名称
|
||||
**/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 上报时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date ts;
|
||||
|
||||
/**
|
||||
* 从机编号
|
||||
*/
|
||||
private Integer slaveId;
|
||||
|
||||
/**
|
||||
* 寄存器地址
|
||||
*/
|
||||
private String regArr;
|
||||
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* TriggerParameter
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class TriggerParameter
|
||||
{
|
||||
/** 物模型标识符数组 */
|
||||
private String[] ids;
|
||||
|
||||
/** 产品ID */
|
||||
private Long productId;
|
||||
|
||||
/** 设备ID */
|
||||
private Long deviceId;
|
||||
|
||||
/** 设备编号 */
|
||||
private String serialNumber;
|
||||
|
||||
/** 触发源(1=设备触发,2=定时触发) */
|
||||
private Integer source;
|
||||
|
||||
/** 类型:1=属性,2=功能,3=事件,4=设备升级,5=设备上线,6=设备下线**/
|
||||
private Integer type;
|
||||
|
||||
/**场景状态 (1-启动,2-停止) **/
|
||||
private Integer status;
|
||||
|
||||
public Integer getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
public void setSource(Integer source) {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String[] getIds() {
|
||||
return ids;
|
||||
}
|
||||
|
||||
public void setIds(String[] ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public Long getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(Long productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public Long getDeviceId() {
|
||||
return deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(Long deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getSerialNumber() {
|
||||
return serialNumber;
|
||||
}
|
||||
|
||||
public void setSerialNumber(String serialNumber) {
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.fastbee.iot.model;
|
||||
|
||||
/**
|
||||
* 用户ID和设备ID模型
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
public class UserIdDeviceIdModel
|
||||
{
|
||||
private Long userId;
|
||||
|
||||
private Long deviceId;
|
||||
|
||||
public UserIdDeviceIdModel(Long userId, Long deviceId){
|
||||
this.userId=userId;
|
||||
this.deviceId=deviceId;
|
||||
}
|
||||
|
||||
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getDeviceId() {
|
||||
return deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(Long deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.fastbee.iot.model.dashBoard;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author bill
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
public class DashMqttMetrics {
|
||||
|
||||
/**接收总数*/
|
||||
private Integer receive_total;
|
||||
/**发送总数*/
|
||||
private Integer send_total;
|
||||
/**认证总数*/
|
||||
private Integer auth_total;
|
||||
/**连接总数*/
|
||||
private Integer connect_total;
|
||||
/**订阅总数*/
|
||||
private Integer subscribe_total;
|
||||
/**今日接收总数*/
|
||||
private Integer today_received;
|
||||
/**今日发送总数*/
|
||||
private Integer today_send;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.fastbee.iot.model.dashBoard;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author gsb
|
||||
* @date 2023/3/27 17:05
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
public class DashMqttStat {
|
||||
|
||||
/**当前连接数*/
|
||||
private Integer connection_count;
|
||||
/**连接总数*/
|
||||
private Integer connection_total;
|
||||
/**会话数量*/
|
||||
private Integer session_count;
|
||||
/**会话总数*/
|
||||
private Integer session_total;
|
||||
/**当前订阅主题总数*/
|
||||
private Integer subscription_count;
|
||||
/**总订阅总数*/
|
||||
private Integer subscription_total;
|
||||
/**当前保留消息*/
|
||||
private Integer retain_count;
|
||||
/**总保留信息数*/
|
||||
private Integer retain_total;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.fastbee.iot.model.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 设备实时数据dto
|
||||
* @author gsb
|
||||
* @date 2023/2/1 15:55
|
||||
*/
|
||||
@Data
|
||||
public class DeviceRtDto {
|
||||
|
||||
/**物模型名称*/
|
||||
private String modelName;
|
||||
/**值*/
|
||||
private String value;
|
||||
/**标识符*/
|
||||
private String identifier;
|
||||
/**数据定义*/
|
||||
private String specs;
|
||||
/**寄存器地址*/
|
||||
private String regAddr;
|
||||
/**数据类型*/
|
||||
private String dataType;
|
||||
/**更新时间*/
|
||||
private String platformTime;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.fastbee.iot.model.login;
|
||||
|
||||
import com.fastbee.iot.domain.SocialPlatform;
|
||||
import me.zhyd.oauth.request.AuthRequest;
|
||||
|
||||
public class AuthRequestWrap {
|
||||
private AuthRequest authRequest;
|
||||
|
||||
private SocialPlatform socialPlatform;
|
||||
|
||||
public AuthRequest getAuthRequest() {
|
||||
return authRequest;
|
||||
}
|
||||
|
||||
public void setAuthRequest(AuthRequest authRequest) {
|
||||
this.authRequest = authRequest;
|
||||
}
|
||||
|
||||
public SocialPlatform getSocialPlatform() {
|
||||
return socialPlatform;
|
||||
}
|
||||
|
||||
public void setSocialPlatform(SocialPlatform socialPlatform) {
|
||||
this.socialPlatform = socialPlatform;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user