kongzy
2024-07-01 47a751cb301d05276ae5d75145d57b2d090fe4e1
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
package com.nanometer.smartlab.entity.enumtype;
 
public enum ApiStatus {
    OK("00", "成功返回"),
    SYS_ERR("01", "系统错误"),
    DB_ERR("02", "数据库错误"),
    PARAM_NULL("1001", "参数不能为空"),
    PARAM_ERR("1002", "参数错误"),
    PARAM_NO_EXIST("1003", "参数不存在"),
    PARAM_EXIST("1004", "参数已存在");
 
    private String retCode;
 
    private String retMsg;
 
    private ApiStatus(String retCode, String retMsg) {
        this.retCode = retCode;
        this.retMsg = retMsg;
    }
 
    public String getRetCode() {
        return retCode;
    }
 
    public void setRetCode(String retCode) {
        this.retCode = retCode;
    }
 
    public String getRetMsg() {
        return retMsg;
    }
 
    public void setRetMsg(String retMsg) {
        this.retMsg = retMsg;
    }
}