src/main/java/com/hz/util/http/dto/HttpHzResponse.java
@@ -12,6 +12,19 @@ /**返回信息*/ private String data; /**请求返回状态-成功*/ public static final String CODE_200 = "200"; /**请求返回状态-成功*/ public static final String CODE_201 = "201"; /**封装校验请求码方法*/ public boolean checkRequesCode(){ if(CODE_200.equals(code) || CODE_201.equals(code)){ return true; } return false; } public String getCode() { return code; }