You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.0 KiB
53 lines
1.0 KiB
package com.gaotao.modules.api.entity;
|
|
|
|
import java.util.List;
|
|
|
|
public class SResT<T> extends SRes{
|
|
/**
|
|
* 数据实体
|
|
*/
|
|
private T resData;
|
|
|
|
/**
|
|
* 数据实体列表
|
|
*/
|
|
private List<T> resDataList;
|
|
|
|
// -------------------- 构造函数 --------------------
|
|
|
|
public SResT() {}
|
|
|
|
public SResT(T resData) {
|
|
this.resData = resData;
|
|
}
|
|
|
|
public SResT(List<T> resDataList) {
|
|
this.resDataList = resDataList;
|
|
}
|
|
|
|
// -------------------- Getter & Setter --------------------
|
|
|
|
public T getResData() {
|
|
return resData;
|
|
}
|
|
|
|
public void setResData(T resData) {
|
|
this.resData = resData;
|
|
}
|
|
|
|
public List<T> getResDataList() {
|
|
return resDataList;
|
|
}
|
|
|
|
public void setResDataList(List<T> resDataList) {
|
|
this.resDataList = resDataList;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "SResT{" +
|
|
"resData=" + resData +
|
|
", resDataList=" + resDataList +
|
|
"} " + super.toString();
|
|
}
|
|
}
|