package com.red.circle.common.business.dto;

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 分页查询命令.
 *
 * @author pengliang on 2021/10/14
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PageQueryCmd extends AppExtCommand {

  /**
   * 每页数量.
   *
   * @eo.required
   */
  @NotNull(message = "size required.")
  private Long size;

  /**
   * 当前页.
   *
   * @eo.required
   */
  @NotNull(message = "size required.")
  private Long current;

}
