CZT
2023-11-27 c206acfaedc69c390fb67daa81bc686f58a212ef
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
package com.ld.igds.n2;
 
/**
 * 智能气调验证返回结果
 */
public class N2IntelCheckResp {
 
 
    public static String SUCCESS = "SUCCESS";
    public static String WARN = "WARN";
    public static String PROGRESS = "PROGRESS";
 
    private String code;
    private String msg;
 
    public N2IntelCheckResp() {
        super();
    }
 
    N2IntelCheckResp(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
 
    public String getCode() {
        return code;
    }
 
    public String getMsg() {
        return msg;
    }
 
    public static N2IntelCheckResp success() {
        return new N2IntelCheckResp(SUCCESS, "执行成功");
    }
 
    public static N2IntelCheckResp progress() {
        return new N2IntelCheckResp(PROGRESS, "进行中");
    }
 
    public static N2IntelCheckResp warn(String msg) {
        if (null == msg) msg = "执行失败!";
        return new N2IntelCheckResp(WARN, msg);
    }
}