czt
2 天以前 51faf3e9c3c613e7fb12db6c88356946f2429e0c
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
package com.fzzy.igds.response;
 
import com.fzzy.igds.constant.OrderRespEnum;
import lombok.Data;
 
/**
 * @Description 响应数据封装,命令的请求分为两个阶段,发送和响应
 * @Author CZT
 * @Date 2025/12/9 9:56
 */
@Data
public class BaseResponse {
 
    //执行验证成功
    public static final String CHECK_SUCCESS ="0000";
    //执行验证失败,具体失败原因意自定义
    public static final String CHECK_ERROR ="1111";
 
 
    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();
    }
 
 
}