templates.common.PageParam.ftl Maven / Gradle / Ivy
package ${packageName}.common.page;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import ${packageName}.common.constants.Constants;
/**
* 分页公共请求对象
*/
@Data
public class PageParam {
@Schema(description = "页码", example = Constants.DEFAULT_PAGE + "")
private int page = Constants.DEFAULT_PAGE;
@Schema(description = "每页数量", example = Constants.DEFAULT_LIMIT + "")
private int limit = Constants.DEFAULT_LIMIT;
}