io.github.dragons96.BaseResponse Maven / Gradle / Ivy
package io.github.dragons96;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
* 抽象响应
* @author dragons
* @date 2022/3/16 12:26
*/
@Data
@AllArgsConstructor
public abstract class BaseResponse {
/**
* 响应状态码
*/
private int code;
/**
* 响应状态信息
*/
private String message;
public BaseResponse(IResponseEnum responseEnum) {
this.code = responseEnum.getCode();
this.message = responseEnum.getMessage();
}
}