1
zj
2024-06-28 42c55aa0fb937c45d28f02bed25dd93888d5a6e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.example.common;
 
 
public enum ResponseCode {
    SUCCESS(0, "SUCCESS"),
    ERROR(1, "ERROR"),
    NEED_LOGIN(10, "NEED_LOGIN"),
    ILLEGAL_ARGUMENT(2, "ILLEGAL_ARGUMENT");
    private int code;
    private String msg;
 
    ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
 
    public int getCode() {
        return this.code;
    }
 
    public String getMsg() {
        return this.msg;
    }
}