tech.veedo.ragdoll.globaladvice.GlobalAdviceEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ragdoll-global-advice Show documentation
Show all versions of ragdoll-global-advice Show documentation
springboot plugins to process return advise and exception
package tech.veedo.ragdoll.globaladvice;
import lombok.Data;
import lombok.experimental.Accessors;
@Data
@Accessors(chain = true)
public class GlobalAdviceEntity {
/**
* 状态码
*/
private Integer statusCode = 200;
/**
* 响应状态码
*/
private boolean success = true;
/**
* 响应信息
*/
private String message = "调用接口成功";
/**
* 返回数据
*/
private Object data;
public GlobalAdviceEntity() {}
public GlobalAdviceEntity(boolean success, String message) {
this.success = success;
this.message = message;
}
public GlobalAdviceEntity(boolean success, Object data) {
this.success = success;
this.data = data;
}
public GlobalAdviceEntity(String message, Object data) {
this.message = message;
this.data = data;
}
public GlobalAdviceEntity(boolean success, String message, Object data) {
this.success = success;
this.message = message;
this.data = data;
}
}