package com.red.circle.other.adapter.app.message.dto;

import com.red.circle.common.business.dto.PageQueryCmd;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


/**
 * 公共消息分页查询参数.
 *
 * @author your_name
 * @date 2025-10-14
 */
@Data
public class PublicMessagePageQry {

  /**
   * 消息类型：notification-通知，activity-活动（null-查询全部）.
   */
  private String type;

  /**
   * 页码（从1开始）.
   */
  @NotNull(message = "页码不能为空")
  @Min(value = 1, message = "页码最小为1")
  private Integer pageNo;

  /**
   * 每页大小.
   */
  @NotNull(message = "每页大小不能为空")
  @Min(value = 1, message = "每页大小最小为1")
  @Max(value = 100, message = "每页大小最大为100")
  private Integer pageSize;

}
