zhitong.yu
8 天以前 7fc9c42987a13c1d8d2159591a5803e70518827f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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);
    }
}