fix: 新增太阳能网控添加接口。
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
package com.intc.iot.domain.bo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 添加太阳能网控业务对象
|
||||
*
|
||||
* @author intc
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "添加太阳能网控请求对象")
|
||||
public class AddDeviceSolarControllerBo implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 设备编号/序列号
|
||||
*/
|
||||
@Schema(description = "设备编号/序列号")
|
||||
@NotBlank(message = "设备编号不能为空")
|
||||
private String serialNum;
|
||||
|
||||
/**
|
||||
* 塘口ID
|
||||
*/
|
||||
@Schema(description = "塘口ID")
|
||||
private Long pondId;
|
||||
|
||||
/**
|
||||
* 电量电话告警开关(0-关闭, 1-开启)
|
||||
*/
|
||||
@Schema(description = "电量电话告警开关(0-关闭, 1-开启)")
|
||||
@NotNull(message = "电量电话告警开关不能为空")
|
||||
private Long batteryWarnCallOpen;
|
||||
|
||||
/**
|
||||
* 电量告警免打扰(0-关闭, 1-开启)
|
||||
*/
|
||||
@Schema(description = "电量告警免打扰(0-关闭, 1-开启)")
|
||||
@NotNull(message = "电量告警免打扰不能为空")
|
||||
private Long batteryWarnCallNoDis;
|
||||
|
||||
/**
|
||||
* 电量电话告警下限(百分比)
|
||||
*/
|
||||
@Schema(description = "电量电话告警下限(百分比)")
|
||||
@NotNull(message = "电量电话告警下限不能为空")
|
||||
private Long batteryWarnLower;
|
||||
}
|
||||
Reference in New Issue
Block a user