cn.hippo4j.common.web.base.Result Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hippo4j-common Show documentation
Show all versions of hippo4j-common Show documentation
HIPPO4J、HIPPO4J-CORE 公共代码库.
package cn.hippo4j.common.web.base;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* Result.
*
* @author chen.ma
* @date 2021/3/19 16:12
*/
@Data
@Accessors(chain = true)
public class Result implements Serializable {
private static final long serialVersionUID = -4408341719434417427L;
public static final String SUCCESS_CODE = "0";
private String code;
private String message;
private T data;
public boolean isSuccess() {
return SUCCESS_CODE.equals(code);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy