1.国网下穿实体类位置调整
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package com.njcn.web.pojo.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2024/5/9
|
||||
*/
|
||||
@Data
|
||||
public class PmsHttpResult<T> implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("返回提示信息")
|
||||
private String msg;
|
||||
|
||||
@ApiModelProperty("返回状态码")
|
||||
private Integer code;
|
||||
|
||||
@ApiModelProperty("返回数据")
|
||||
private T data;
|
||||
|
||||
@ApiModelProperty("状态")
|
||||
private String sucess;
|
||||
|
||||
@ApiModelProperty("返回机密数据")
|
||||
private String encrypt_data;
|
||||
|
||||
@ApiModelProperty("返回其他数据")
|
||||
private String other;
|
||||
|
||||
|
||||
public PmsHttpResult(Integer code, T data) {
|
||||
this.code = code;
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.njcn.web.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2024/5/15
|
||||
*/
|
||||
@Data
|
||||
public class PmsPage<T> implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public List<T> list = Collections.emptyList();
|
||||
|
||||
/**
|
||||
* 总数
|
||||
*/
|
||||
public long total = 0;
|
||||
/**
|
||||
* 每页显示条数,默认 10
|
||||
*/
|
||||
public long size = 10;
|
||||
|
||||
/**
|
||||
* 当前页
|
||||
*/
|
||||
public long current = 1;
|
||||
|
||||
public long pageNum;
|
||||
public long pageSize;
|
||||
public long pages;
|
||||
public long prePage;
|
||||
public long startRow;
|
||||
|
||||
private int endRow;
|
||||
private boolean hasNextPage;
|
||||
private boolean hasPreviousPage;
|
||||
private boolean isFirstPage;
|
||||
private boolean isLastPage;
|
||||
private int navigateFirstPage;
|
||||
private int navigateLastPage;
|
||||
private int navigatePages;
|
||||
private List<String> navigatepageNums;
|
||||
private int nextPage;
|
||||
|
||||
|
||||
public PmsPage(long current, long size) {
|
||||
this.current = current;
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
|
||||
public PmsPage() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user