feat:添加物联设备点位批量修改接口
parent
5e95b4f61a
commit
b40ff1c4ca
@ -0,0 +1,26 @@
|
|||||||
|
package cn.iocoder.yudao.module.iot.controller.admin.device.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 设备点位批量更新 Request VO")
|
||||||
|
@Data
|
||||||
|
public class DeviceAttributeBatchUpdateReqVO {
|
||||||
|
|
||||||
|
@Schema(description = "点位 ID 列表", requiredMode = Schema.RequiredMode.REQUIRED, example = "[1024, 1025]")
|
||||||
|
@NotEmpty(message = "点位 ID 列表不能为空")
|
||||||
|
private List<Long> ids;
|
||||||
|
|
||||||
|
@Schema(description = "点位类型", example = "1")
|
||||||
|
private String attributeType;
|
||||||
|
|
||||||
|
@Schema(description = "单位", example = "kg")
|
||||||
|
private String dataUnit;
|
||||||
|
|
||||||
|
@Schema(description = "倍率", example = "1.0")
|
||||||
|
private Double ratio;
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue