Commit a6a21383 authored by 车祥's avatar 车祥

ErrorEnum-更新-chexiang

parent 9b7ba8d0
......@@ -16,7 +16,28 @@ public enum ErrorEnum {
E_200(200, "请求的服务不存在"),
E_201(201, "请求次数超限或者过于频繁,暂时封禁"),
E_202(202, "请求参数缺少必要字段"),
E_203(203, "json格式有误");
E_203(203, "json格式有误"),
E_301(300,"当前操作无权限"),
E_302(301,"Token过期"),
E_303(302,"签名sign无效"),
E_304(303,"请求IP不被允许"),
E_401(400,"网络错误"),
E_402(401,"业务逻辑错误"),
E_403(402,"数据库错误"),
E_404(403,"文件操作错误"),
E_501(500,"记录未发现"),
E_502(501,"数据库中存在重复的记录"),
E_503(502,"无数据"),
E_504(503,"系统保护数据,不可修改或删除"),
E_1001(1000,"账号或者密码错误"),
E_1002(1001,"账号已经被禁用"),
E_1003(1002,"没有登录或者长时间未操作导致登录信息丢失");
// 成员变量
private int code;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment