对接第三方
This commit is contained in:
@@ -18,10 +18,10 @@ public class ModelEnvironmentIndexPageReqVO extends PageParam {
|
||||
private String cycleId;
|
||||
|
||||
@Schema(description = "设备分类")
|
||||
private String deviceClass;
|
||||
private Integer deviceClass;
|
||||
|
||||
@Schema(description = "环境指标")
|
||||
private String indicators;
|
||||
private Integer indicators;
|
||||
|
||||
@Schema(description = "最低值")
|
||||
private BigDecimal minimum;
|
||||
|
||||
@@ -23,11 +23,11 @@ public class ModelEnvironmentIndexRespVO {
|
||||
|
||||
@Schema(description = "设备分类")
|
||||
@ExcelProperty("设备分类")
|
||||
private String deviceClass;
|
||||
private Integer deviceClass;
|
||||
|
||||
@Schema(description = "环境指标")
|
||||
@ExcelProperty("环境指标")
|
||||
private String indicators;
|
||||
private Integer indicators;
|
||||
|
||||
@Schema(description = "最低值")
|
||||
@ExcelProperty("最低值")
|
||||
|
||||
@@ -16,10 +16,10 @@ public class ModelEnvironmentIndexSaveReqVO {
|
||||
private String cycleId;
|
||||
|
||||
@Schema(description = "设备分类")
|
||||
private String deviceClass;
|
||||
private Integer deviceClass;
|
||||
|
||||
@Schema(description = "环境指标")
|
||||
private String indicators;
|
||||
private Integer indicators;
|
||||
|
||||
@Schema(description = "最低值")
|
||||
private BigDecimal minimum;
|
||||
|
||||
@@ -77,7 +77,7 @@ public class MqttTestController {
|
||||
@PreAuthorize("@ss.hasPermission('farm:mqtt-connection:test')")
|
||||
public CommonResult<String> publishTest(
|
||||
@PathVariable("deviceId") String deviceId,
|
||||
@RequestParam(value = "message", defaultValue = "{\"temperature\":25.5,\"humidity\":60.2}") String message) {
|
||||
@RequestParam(value = "message") String message) {
|
||||
try {
|
||||
deviceMqttService.publishTelemetry(deviceId, message);
|
||||
return success("消息发送成功");
|
||||
|
||||
@@ -37,12 +37,11 @@ public class ModelEnvironmentIndexDO extends BaseDO {
|
||||
/**
|
||||
* 设备分类
|
||||
*/
|
||||
@DictFormat("device_class")
|
||||
private String deviceClass;
|
||||
private Integer deviceClass;
|
||||
/**
|
||||
* 环境指标
|
||||
*/
|
||||
private String indicators;
|
||||
private Integer indicators;
|
||||
/**
|
||||
* 最低值
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user