feat: 新增太阳能控制下发指令功能。
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
package com.intc.iot.domain.bo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 太阳能网控属性下发请求对象
|
||||
*
|
||||
* @author intc
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "太阳能网控属性下发请求对象")
|
||||
public class DeviceSolarPropertyCommandBo implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 设备ID
|
||||
*/
|
||||
@Schema(description = "设备ID")
|
||||
@NotNull(message = "设备ID不能为空")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 待下发属性,key 为物模型属性标识符
|
||||
*/
|
||||
@Schema(description = "待下发属性")
|
||||
@NotEmpty(message = "下发属性不能为空")
|
||||
private Map<String, Object> properties;
|
||||
|
||||
/**
|
||||
* 是否缓存下发。true=写入缓存,设备上线后自动补发;false=立即下发
|
||||
*/
|
||||
@Schema(description = "是否缓存下发")
|
||||
private Boolean cache;
|
||||
}
|
||||
Reference in New Issue
Block a user