ToMes.java
1.81 KB
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
package com.huaheng.api.general.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
import java.util.List;
/**
* @author yiwenpeng
* @date 2022/9/1 10:10
*/
@NoArgsConstructor
@Data
public class ToMes {
@JsonProperty("header")
private HeaderDTO header;
@JsonProperty("content")
private ContentDTO content;
@NoArgsConstructor
@AllArgsConstructor
@Data
public static class HeaderDTO {
@JsonProperty("method")
private String method;
@JsonProperty("account")
private String account;
@JsonProperty("password")
private String password;
@JsonProperty("version")
private String version;
@JsonProperty("modules")
private String[] modules;
@JsonProperty("mac")
private String mac;
@JsonProperty("lang")
private String lang;
@JsonProperty("is_debug")
private Boolean is_debug;
@JsonProperty("platform")
private String platform;
@JsonProperty("session")
private String session;
}
@NoArgsConstructor
@Data
public static class ContentDTO {
@JsonProperty("Createdate")
private String createdate;
@JsonProperty("Batterynumber")
private Integer batterynumber;
@JsonProperty("Barcodedata")
private List<BarcodedataDTO> barcodedata;
@NoArgsConstructor
@Data
public static class BarcodedataDTO {
@JsonProperty("Batterybarcode")
private String batterybarcode;
@JsonProperty("Batterysource")
private String batterysource;
@JsonProperty("Batterytype")
private String batterytype;
}
}
}