zhoushihao
2024-04-09 25790d514828ef9772c134c26487cd436f593553
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
package com.mes.utils;
 
import lombok.Getter;
 
/**
 * @author zhoush
 */
 
@Getter
public enum ResultCodeEnum {
 
    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(2012, "服务异常"),
    DATA_ERROR(204, "数据异常"),
    ILLEGAL_REQUEST(205, "非法请求"),
    REPEAT_SUBMIT(206, "重复提交"),
 
    LOGIN_AUTH(208, "未登陆"),
    PERMISSION(209, "没有权限"),
 
 
    ;
 
    private Integer code;
 
    private String message;
 
    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}