mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	R add isError and isSuccess method
This commit is contained in:
		@@ -102,4 +102,14 @@ public class R<T> implements Serializable
 | 
			
		||||
    {
 | 
			
		||||
        this.data = data;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public Boolean isError()
 | 
			
		||||
    {
 | 
			
		||||
        return !isSuccess();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public Boolean isSuccess()
 | 
			
		||||
    {
 | 
			
		||||
        return R.SUCCESS == getCode();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user