package com.kidgrow.common.base;
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
import java.io.Serializable;
|
|
/**
|
* 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
|
*
|
* @Description: 接口返回数据包装类型<br>
|
* @Project: <br>
|
* @CreateDate: Created in 2020/2/3 17:03 <br>
|
* @Author: <a href="4345453@kidgrow.com">liuke</a>
|
*/
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
public class ApiResponse<T> extends BaseResponse implements Serializable {
|
|
public static long serialVersionUID = 1000000001L;
|
|
/**
|
* 单个数据
|
*/
|
private T data;
|
|
public ApiResponse() {
|
}
|
|
public ApiResponse(Integer code, String msg) {
|
super(code, msg);
|
}
|
|
public T getData() {
|
return data;
|
}
|
|
public void setData(T data) {
|
this.data = data;
|
}
|
}
|