io.github.dragons96.SuccessResponse Maven / Gradle / Ivy
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;
}
}