package com.zswl.dataservice.model.mqtt; import cn.hutool.json.JSONObject; import com.zswl.dataservice.domain.iot.IotTemplate; import com.zswl.dataservice.domain.mqtt.ProjectInfo; import com.zswl.dataservice.model.baseParam.SuperParam; import com.zswl.dataservice.utils.mqtt.type.OnLineState; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import org.springframework.data.mongodb.core.mapping.DBRef; /** * @author TRX * @date 2024/5/16 */ @Data public class DeviceInfoAddParam extends SuperParam { @Schema(description = "设备ID") private String deviceId; @Schema(description = "设备名称") private String deviceName; @Schema(description = "在线状态") private OnLineState onLineState; @Schema(description = "ip地址") private String ip; @Schema(description = "所属项目") @DBRef(lazy = true) private String projectInfoOid; @Schema(description = "固件版本") private String firmwareVersion; @Schema(description = "连接参数") private JSONObject connectParam; @Schema(description = "是否开启日志上传") private Boolean isReportLogs = Boolean.TRUE; @Schema(description = "物联网模版信息") @DBRef(lazy = true) private String iotTemplateId; }