package top.continew.admin.business.model.req;

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

import java.io.Serializable;

/**
 * 任务查询请求参数
 *
 * @author wangzhiwei
 * @since 2025/08/28 16:35
 */
@Data
public class TaskQueryReq implements Serializable {

    @Schema(description = "根任务ID")
    @NotBlank(message = "根任务ID不能为空")
    private String taskRootId;

    @Min(value = 1, message = "查询页码必须大于0")
    @Schema(description = "查询页码")
    private int page = 1;

    @Positive(message = "每页数量必须大于0")
    @Schema(description = "每页数量")
    private int size = 10;

}