mirror of
https://github.com/niushuai233/DevControl.git
synced 2024-10-27 22:43:20 +08:00
feat: 数据库调整字段
This commit is contained in:
parent
c968d44f1e
commit
e000f72f07
@ -24,6 +24,12 @@ public class CommandExt {
|
||||
@Index
|
||||
private Long deviceId;
|
||||
|
||||
/**
|
||||
* key 备用字段
|
||||
*/
|
||||
@Index
|
||||
private String key;
|
||||
|
||||
/**
|
||||
* 命令
|
||||
*/
|
||||
@ -44,11 +50,12 @@ public class CommandExt {
|
||||
*/
|
||||
private String createTime;
|
||||
|
||||
@Generated(hash = 101490941)
|
||||
public CommandExt(Long id, Long deviceId, String command, Integer order,
|
||||
String remark, String createTime) {
|
||||
@Generated(hash = 704236641)
|
||||
public CommandExt(Long id, Long deviceId, String key, String command,
|
||||
Integer order, String remark, String createTime) {
|
||||
this.id = id;
|
||||
this.deviceId = deviceId;
|
||||
this.key = key;
|
||||
this.command = command;
|
||||
this.order = order;
|
||||
this.remark = remark;
|
||||
@ -107,4 +114,12 @@ public class CommandExt {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return this.key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -59,6 +59,11 @@ public class Device implements Serializable {
|
||||
*/
|
||||
private String commandPath;
|
||||
|
||||
/**
|
||||
* 查询状态参数
|
||||
*/
|
||||
private String commandStatus;
|
||||
|
||||
/**
|
||||
* 开启参数
|
||||
*/
|
||||
@ -84,11 +89,11 @@ public class Device implements Serializable {
|
||||
*/
|
||||
private String createTime;
|
||||
|
||||
@Generated(hash = 2026639556)
|
||||
@Generated(hash = 94069086)
|
||||
public Device(Long id, Integer order, String deviceName, String deviceType,
|
||||
String onOff, String description, Integer iconId, String commandPath,
|
||||
String commandOpen, String commandClose, Integer isDeleted,
|
||||
String remark, String createTime) {
|
||||
String commandStatus, String commandOpen, String commandClose,
|
||||
Integer isDeleted, String remark, String createTime) {
|
||||
this.id = id;
|
||||
this.order = order;
|
||||
this.deviceName = deviceName;
|
||||
@ -97,6 +102,7 @@ public class Device implements Serializable {
|
||||
this.description = description;
|
||||
this.iconId = iconId;
|
||||
this.commandPath = commandPath;
|
||||
this.commandStatus = commandStatus;
|
||||
this.commandOpen = commandOpen;
|
||||
this.commandClose = commandClose;
|
||||
this.isDeleted = isDeleted;
|
||||
@ -211,4 +217,12 @@ public class Device implements Serializable {
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getCommandStatus() {
|
||||
return this.commandStatus;
|
||||
}
|
||||
|
||||
public void setCommandStatus(String commandStatus) {
|
||||
this.commandStatus = commandStatus;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user