package com.macro.mall.common.api;

/**
 * 枚举了一些常用API操作码
 * Created by macro on 2019/4/19.
 */
public enum ResultCode implements IErrorCode {
    SUCCESS(200, "操作成功"),
    FAILED(500, "操作失败"),
    VALIDATE_FAILED(404, "参数检验失败"),
    UNAUTHORIZED(401, "暂未登录或token已经过期"),
    FORBIDDEN(403, "没有相关权限");
    private long code;
    private String message;

    private ResultCode(long code, String message) {
        this.code = code;
        this.message = message;
    }

    public long getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}

@@ -40,21 +40,20 @@
 %0A * 
-%E6%9E%9A%E4%B8%BE%E4%BA%86%E4%B8%80%E4%BA%9B%E5%B8%B8%E7%94%A8API%E6%93%8D%E4%BD%9C%E7%A0%81
+%E5%B8%B8%E7%94%A8API%E8%BF%94%E5%9B%9E%E5%AF%B9%E8%B1%A1%E6%9E%9A%E4%B8%BE%E7%B1%BB
 %0A * 

Update ResultCode.java