chenjiahe
2022-06-17 d14a1087cab58b80768d2e95c6b227eecd7b2483
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;
/**
@@ -62,6 +64,13 @@
        return false;
    }
    /**校验返回码,进行错误提示*/
    public void checkTips(){
        if(!ResponseCode.SUCCESS.equals(code)){
            throw new TipsException("请求失败:"+this.code+","+this.msg);
        }
    }
    /*******************************************************************************/
    public String getCode() {