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.
36 lines
542 B
36 lines
542 B
package com.teaching.backend.common; |
|
|
|
|
|
import com.teaching.backend.constant.CommonConstant; |
|
import lombok.*; |
|
|
|
/** |
|
* 分页请求 |
|
*/ |
|
@Data |
|
@Getter |
|
@Setter |
|
@AllArgsConstructor |
|
@NoArgsConstructor |
|
public class PageRequest { |
|
|
|
/** |
|
* 当前页号 |
|
*/ |
|
private int current = 1; |
|
|
|
/** |
|
* 页面大小 |
|
*/ |
|
private int pageSize = 10; |
|
|
|
/** |
|
* 排序字段 |
|
*/ |
|
private String sortField; |
|
|
|
/** |
|
* 排序顺序(默认升序) |
|
*/ |
|
private String sortOrder = CommonConstant.SORT_ORDER_ASC; |
|
}
|
|
|