All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.onetwo.common.apiclient.ApiResponsable Maven / Gradle / Ivy

package org.onetwo.common.apiclient;

import org.onetwo.common.annotation.IgnoreField;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * @author weishao zeng
 * 
*/ public interface ApiResponsable { /*** * 相应是否成功 * @author weishao zeng * @return */ @IgnoreField @JsonIgnore default boolean isSuccess() { T code = resultCode(); return "success".equalsIgnoreCase(code.toString()) || Integer.valueOf(0).equals(code) || "ok".equalsIgnoreCase(code.toString()); } T resultCode(); String resultMessage(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy