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.

28 lines
838 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.yanzhen.utils; // 定义包名
import com.fasterxml.jackson.annotation.JsonIgnore; // 导入JsonIgnore注解
import com.fasterxml.jackson.annotation.JsonProperty; // 导入JsonProperty注解
public class Entity { // 定义Entity类
private Integer page = 1; // 页码数默认为1
private Integer limit = 10; // 页面大小默认的10
public Integer getPage() { // 获取页码数的方法
return page; // 返回页码数
}
public void setPage(Integer page) { // 设置页码数的方法
this.page = page; // 设置页码数
}
public Integer getLimit() { // 获取页面大小的方法
return limit; // 返回页面大小
}
public void setLimit(Integer limit) { // 设置页面大小的方法
this.limit = limit; // 设置页面大小
}
}