Commit da3f63d8b96fb26b3a81a5fe50122cdeba295d83
1 parent
b7623cd6
fix: data component add showDeviceName for state
Showing
1 changed file
with
11 additions
and
0 deletions
common/data/src/main/java/org/thingsboard/server/common/data/yunteng/dto/board/ComponentInfoDTO.java
@@ -23,6 +23,17 @@ public class ComponentInfoDTO implements Serializable { | @@ -23,6 +23,17 @@ public class ComponentInfoDTO implements Serializable { | ||
23 | @ApiModelProperty(value = "icon图标颜色") | 23 | @ApiModelProperty(value = "icon图标颜色") |
24 | private String iconColor; | 24 | private String iconColor; |
25 | 25 | ||
26 | + @ApiModelProperty(value = "显示设备名称:默认true") | ||
27 | + private Boolean showDeviceName; | ||
28 | + | ||
26 | @ApiModelProperty(value = "梯度信息") | 29 | @ApiModelProperty(value = "梯度信息") |
27 | private List<GradientInfo> gradientInfo; | 30 | private List<GradientInfo> gradientInfo; |
31 | + | ||
32 | + public Boolean getShowDeviceName() { | ||
33 | + return showDeviceName; | ||
34 | + } | ||
35 | + | ||
36 | + public void setShowDeviceName(Boolean showDeviceName) { | ||
37 | + this.showDeviceName = null == showDeviceName || showDeviceName; | ||
38 | + } | ||
28 | } | 39 | } |