From f5fd9417e4325c27797d1a797cfc8d1b2d1f63c5 Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Wed, 15 Oct 2025 17:14:48 +0800
Subject: [PATCH] 1.修改备注。 2.修改服务器管理ID名称。 3.增加批量新增无人机盒子接口。 4.增加公共方法类。

---
 ard-sample/src/main/java/com/ard/sample/manage/model/receiver/BatteryStateReceiver.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/ard-sample/src/main/java/com/ard/sample/manage/model/receiver/BatteryStateReceiver.java b/ard-sample/src/main/java/com/ard/sample/manage/model/receiver/BatteryStateReceiver.java
index 098b116..c31c9f0 100644
--- a/ard-sample/src/main/java/com/ard/sample/manage/model/receiver/BatteryStateReceiver.java
+++ b/ard-sample/src/main/java/com/ard/sample/manage/model/receiver/BatteryStateReceiver.java
@@ -1,5 +1,6 @@
 package com.ard.sample.manage.model.receiver;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.PropertyNamingStrategy;
 import com.fasterxml.jackson.databind.annotation.JsonNaming;
 import lombok.Data;
@@ -13,22 +14,33 @@
 @JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
 public class BatteryStateReceiver {
 
+    //zwy 2025-10-14 修改增加注解对应json字段
+
+    @JsonProperty("firmware_version")
     private String firmwareVersion;
 
+    @JsonProperty("index")
     private Integer index;
 
+    @JsonProperty("loop_times")
     private Integer loopTimes;
 
+    @JsonProperty("capacity_percent")
     private Integer capacityPercent;
 
+    @JsonProperty("sn")
     private String sn;
 
+    @JsonProperty("sub_type")
     private Integer subType;
 
+    @JsonProperty("temperature")
     private Float temperature;
 
+    @JsonProperty("type")
     private Integer type;
 
+    @JsonProperty("voltage")
     private Integer voltage;
 
 }
\ No newline at end of file

--
Gitblit v1.9.3