chenjiahe
2022-06-15 11f9478b32b710e022c328972fd2e07c72a62df8
src/main/java/com/hx/resultTool/Result.java
@@ -1,5 +1,7 @@
package com.hx.resultTool;
import com.hx.exception.TipsException;
import java.io.Serializable;
/**
@@ -56,10 +58,17 @@
    /**校验返回码*/
    public Boolean checkCode(){
        if(!ResponseCode.SUCCESS.equals(code)){
            return false;
        if(ResponseCode.SUCCESS.equals(code)){
            return true;
        }
        return true;
        return false;
    }
    /**校验返回码,进行错误提示*/
    public void checkTips(){
        if(!ResponseCode.SUCCESS.equals(code)){
            throw new TipsException("请求失败:"+this.code+","+this.msg);
        }
    }
    /*******************************************************************************/