vince
2024-04-26 b1c572949997a5d82d9b609163ff280a1c49627d
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
package com.fzzy.protocol.fzzy.data;
 
import lombok.Data;
 
import java.io.Serializable;
import java.util.Date;
 
/**
 * 返回信息封装
 *
 * @author Andy
 */
@Data
public class ReMessage implements Serializable {
 
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
 
    private String companyId;//组织编码
 
    private String begin;
 
    private String end;
 
    private String ip;//IP地址
 
    private int port;//端口号
 
    private Date receiveDate = new Date();
 
    private String strMsg;// 当前命令转换为字符串的信息
 
    private String sn;//序列号
 
    private String iedId;// 分机ID
 
    private String functionId;// 功能编码
 
    private String respCode;// 应答编码
 
    private String orderId;//请求编码
 
    private String userData;//自定义数据
 
    private String sign;//签名类型
 
    private String content;//消息体
 
    @Override
    public String toString() {
        return "ReMessage [ip=" + ip + ", port=" + port + ", receiveDate="
                + receiveDate + ", strMsg=" + strMsg + ", sn=" + sn
                + ", iedId=" + iedId + ", functionId=" + functionId
                + ", respCode=" + respCode + ", orderId=" + orderId
                + ", content=" + content + "]";
    }
}