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

tech.veedo.ragdoll.globaladvice.GlobalAdviceEntity Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy