package com.njcn.msgpush.module.push.controller.admin.retry.vo;

import com.njcn.msgpush.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * @author caozehui
 * @data 2026-02-27
 */
@Data
@Schema(description = "管理后台 - 消息重试 Request VO")
public class MessageRetryQueueReqVO extends PageParam {
    @Schema(description = "消息ID")
    private Long messageId;

    @Schema(description = "渠道类型", example = "sms/email/app")
    @NotBlank(message = "渠道类型不能为空")
    private String channel;

    @Schema(description = "接收者", example = "10086")
    @NotBlank(message = "接收者不能为空")
    private String receiver;

    @Schema(description = "最小重试次数")
    @Min(value = 0, message = "最小重试次数不能小于0")
    private Integer minRetryCount;

    @Schema(description = "最大重试次数")
    @Min(value = 0, message = "最大重试次数不能小于0")
    private Integer maxRetryCount;
}
