zhaowenyu
2025-11-26 e8803e34a0d946e3c9158921887739ae77842cf3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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;
 
/**
 * @author sean.zhou
 * @version 0.1
 * @date 2021/11/24
 */
@Data
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class BatteryStateReceiver {
 
    //zwy 2025-10-14 修改增加注解对应json字段
 
    /**
     * 固件版本    text
     * */
    @JsonProperty("firmware_version")
    private String firmwareVersion;
 
    /**
     * 电池序号    int    {"min":"0"}
     * */
    @JsonProperty("index")
    private Integer index;
 
    /**
     * 电池循环次数    int
     * */
    @JsonProperty("loop_times")
    private Integer loopTimes;
 
    /**
     * 电池剩余电量    int    {"max":100,"min":0}
     * */
    @JsonProperty("capacity_percent")
    private Integer capacityPercent;
 
    /**
     * 电池序列号(SN)    text
     * */
    @JsonProperty("sn")
    private String sn;
 
    /**
     * 电池子类型    enum_int    {}
     * */
    @JsonProperty("sub_type")
    private Integer subType;
 
    /**
     * 温度    float    {"unit_name":"摄氏度 / °C"}
     * */
    @JsonProperty("temperature")
    private Float temperature;
 
    /**
     * 电池类型    enum_int    {}
     * */
    @JsonProperty("type")
    private Integer type;
 
    /**
     * 电压    int    {"unit_name":"毫伏 / mV"}
     * */
    @JsonProperty("voltage")
    private Integer voltage;
 
}