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
| package com.genersoft.iot.vmp.vmanager.bean;
|
| /**
| * 全局错误码
| */
| public enum ErrorCode {
| SUCCESS(0, "成功"),
| ERROR100(100, "失败"),
| ERROR400(400, "参数不全或者错误"),
| ERROR404(404, "资源未找到"),
| ERROR403(403, "无权限操作"),
| ERROR401(401, "请登录后重新请求"),
| ERROR500(500, "系统异常");
|
| private final int code;
| private final String msg;
|
| ErrorCode(int code, String msg) {
| this.code = code;
| this.msg = msg;
| }
|
| public int getCode() {
| return code;
| }
|
| public String getMsg() {
| return msg;
| }
| }
|
|