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

org.onetwo.common.apiclient.simple.SimpleApiResponsable Maven / Gradle / Ivy

package org.onetwo.common.apiclient.simple;

import org.onetwo.common.annotation.IgnoreField;
import org.onetwo.common.apiclient.ApiResponsable;

import com.fasterxml.jackson.annotation.JsonIgnore;

import lombok.Data;

/**
 * @author weishao zeng
 * 
*/ @Data public class SimpleApiResponsable implements ApiResponsable { private boolean success; private Object resultCode; private String resultMessage; @Override @IgnoreField @JsonIgnore public boolean isSuccess() { return success; } @Override public Object resultCode() { return resultCode; } @Override public String resultMessage() { return resultMessage; } }