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

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

/**
 * @author caozehui
 * @data 2026-03-05
 */
@Data
@Schema(description = "管理后台 - 重试策略配置 Request VO")
public class RetryStrategyConfigReqVO {
    @Schema(description = "主键 ID")
    private Long id;

    @Schema(description = "渠道类型：sms/email/app", example = "sms")
    @InEnum(value = com.njcn.msgpush.module.push.enums.ChannelTypeEnum.class, message = "渠道类型必须是 {value}")
    private String channel;

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

    @Schema(description = "重试间隔（秒），逗号分隔，如：300,600,1800")
    @NotBlank(message = "重试间隔不能为空")
    private String retryIntervals;
}
