package com.pig4cloud.pig.marketing.api.dto.mongo;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: lwh
 * @date: 2025-08-28
 * @description: TODO
 */
@Data
@Schema(description = "分页查询数据列表入参")
public class PageMessageDTO implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 每页显示条数，默认 10
	 */
	@Schema(description = "每页显示条数", example = "10")
	private Integer size = 10;

	/**
	 * 当前页
	 */
	@Schema(description = "当前页", example = "1")
	private Integer current = 1;

	/**
	 * 客户端ID
	 */
	@NotBlank(message = "客户端ID不能为空")
	@Schema(description = "客户端ID", example = "e478d52e-c773-45e7-b7f9-20ffeb14e730")
	private String clientID;

	/**
	 * 关键字
	 */
	@Schema(description = "关键字")
	private String keyWord;

	/**
	 * 起始时间
	 */
	@Schema(description = "起始时间", example = "2025-08-28 12:00:00")
	private LocalDateTime startTime;

	/**
	 * 结束时间
	 */
	@Schema(description = "结束时间", example = "2025-08-29 12:00:00")
	private LocalDateTime endTime;
}
