package com.hxzk.gps.result;
|
|
|
import java.util.List;
|
|
public class ListDataResult<T> {
|
|
/*
|
* 成功返回表格数据
|
* */
|
public static <T> ResultTable resultTableSuccess(table tableList,String msg) {
|
return new ResultTable(tableList,msg);
|
}
|
|
/*
|
* 成功返回表格轨迹数据
|
* */
|
public static <T> TrackResultTable resultTrackTableSuccess(Tracktable tableList,String msg) {
|
return new TrackResultTable(tableList,msg);
|
}
|
|
/*
|
* 返回表格轨迹数据异常状态
|
* */
|
|
public static <T> TrackResultTable resultTrackTableerror(String msg) {
|
return new TrackResultTable(msg);
|
}
|
|
/*
|
* 返回表格数据异常状态
|
* */
|
public static <T> ResultTable resultTableError(String msg) {
|
return new ResultTable(msg);
|
}
|
|
|
/*
|
* 成功返回列表数据
|
* */
|
public static <T> ResultList resultListSuccess(List list,String msg) {
|
return new ResultList(list,msg);
|
}
|
}
|