jiazx0107@163.com
2023-05-17 620eab6cca2bc9ef9ea6d3067a0a5ba1deadbd1c
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
package com.ld.igds.io.response;
 
import com.ld.igds.io.constant.OrderRespEnum;
import lombok.Data;
 
/**
 * 响应数据封装,命令的请求分为两个阶段,发送和响应
 */
@Data
public class BaseResponse {
 
    private String code;//请求代码
 
    private String msg;//请求返信息
 
    private String orderId;
 
    public BaseResponse() {
    }
 
    public BaseResponse(String code, String msg) {
        this.msg = msg;
        this.code = code;
    }
 
    public BaseResponse(OrderRespEnum orderRespEnum) {
        this.msg = orderRespEnum.getMsg();
        this.code = orderRespEnum.getCode();
    }
 
 
}