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; // 设置页面大小 } }