Browse Source

fix:修改返回字段命名规则

zhongwei
wangyinsheng 2 months ago
parent
commit
19ea36a5c2
  1. 8
      hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/dto/DeviceAttrDTO.java
  2. 7
      hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/dto/DeviceFuncDTO.java

8
hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/dto/DeviceAttrDTO.java

@ -1,5 +1,6 @@
package com.hnac.gglm.bigmodel.maintenance.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ -8,23 +9,30 @@ public class DeviceAttrDTO {
@ApiModelProperty("item")
@JsonProperty("item_id")
private String itemId;
@ApiModelProperty("站点名称")
@JsonProperty("station_name")
private String stationName;
@ApiModelProperty("站点ID")
@JsonProperty("station_id")
private String stationId;
@ApiModelProperty("遥控的设备名称")
@JsonProperty("device_name")
private String deviceName;
@ApiModelProperty("遥控的设备ID")
@JsonProperty("device_id")
private String deviceId;
@ApiModelProperty("记录名称")
@JsonProperty("record_name")
private String recordName;
@ApiModelProperty("取数规则")
@JsonProperty("rule")
private String rule;
}

7
hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/dto/DeviceFuncDTO.java

@ -1,5 +1,6 @@
package com.hnac.gglm.bigmodel.maintenance.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ -8,21 +9,27 @@ import lombok.Data;
public class DeviceFuncDTO {
@ApiModelProperty("item")
@JsonProperty("item_id")
private String itemId;
@ApiModelProperty("站点名称")
@JsonProperty("station_name")
private String stationName;
@ApiModelProperty("站点ID")
@JsonProperty("station_id")
private String stationId;
@ApiModelProperty("遥控的设备名称")
@JsonProperty("device_name")
private String deviceName;
@ApiModelProperty("遥控的设备ID")
@JsonProperty("device_id")
private String deviceId;
@ApiModelProperty("遥控名称")
@JsonProperty("yk_name")
private String ykName;
}

Loading…
Cancel
Save