spring.turbo.webmvc.api.ApiResult Maven / Gradle / Ivy
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* ____ _ _____ _
* / ___| _ __ _ __(_)_ __ __ |_ _| _ _ __| |__ ___
* \___ \| '_ \| '__| | '_ \ / _` || || | | | '__| '_ \ / _ \
* ___) | |_) | | | | | | | (_| || || |_| | | | |_) | (_) |
* |____/| .__/|_| |_|_| |_|\__, ||_| \__,_|_| |_.__/ \___/
* |_| |___/ https://github.com/yingzhuo/spring-turbo
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
package spring.turbo.webmvc.api;
import org.springframework.lang.Nullable;
import spring.turbo.lang.Immutable;
import java.io.Serializable;
/**
* @param 负载类型
* @author 应卓
* @since 1.0.0
*/
@Immutable
public interface ApiResult extends Serializable {
public String getCode();
@Nullable
public String getErrorMessage();
public T getPayload();
public boolean isDeprecated();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy