lyh
2025-01-13 137d008bd9b7d932160436a3a560b24512f6d1db
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
package org.jeecg.modules.dnc.response;
 
import lombok.Data;
import lombok.EqualsAndHashCode;
 
import java.util.List;
 
/**
 * 分页响应结果
 * @param <T>
 */
 
@Data
@EqualsAndHashCode(callSuper = false)
public class QueryListResponseResult<T> extends ResponseResult {
 
    private List<T> list;
 
    private int total;
 
    public QueryListResponseResult(ResultCode resultCode,List list){
        super(resultCode);
        this.list = list;
        this.total = list == null ? 0 : list.size();
    }
 
}