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

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

package org.onetwo.common.apiclient.simple;

import org.onetwo.common.apiclient.ApiResponsable;
import org.onetwo.common.data.Result;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author weishao zeng
 * 
*/ @AllArgsConstructor @Data public class DataResultApiResponsableAdaptor implements ApiResponsable { final private Result result; @Override public String resultCode() { return result.getCode(); } @Override public String resultMessage() { return result.getMessage(); } public boolean isSuccess() { return result.isSuccess(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy