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

io.github.dragons96.SuccessResponse Maven / Gradle / Ivy

There is a newer version: 0.0.4
Show newest version
package io.github.dragons96;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 成功响应
 * @author dragons
 * @date 2022/3/16 11:04
 */
@EqualsAndHashCode(callSuper = true)
@Setter
@Getter
@ToString(callSuper = true)
public class SuccessResponse extends BaseResponse {

    private T data;

    public SuccessResponse(IResponseEnum responseEnum) {
        super(responseEnum);
    }

    public SuccessResponse(IResponseEnum responseEnum, T data) {
        super(responseEnum);
        this.data = data;
    }

    public SuccessResponse(int code, String message) {
        super(code, message);
    }

    public SuccessResponse(int code, String message, T data) {
        super(code, message);
        this.data = data;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy