package com.yc.ship.module.trade.api.dto.sms;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 群发短信 Request DTO
 *
 * @author lingma
 */
@Data
@Schema(description = "RPC 服务 - 群发短信 Request DTO")
public class SmsBatchReqDTO {

    @Schema(description = "用户手机号码集合字符串", requiredMode = Schema.RequiredMode.REQUIRED, 
            example = "13800138000,13800138001")
    @NotEmpty(message = "手机号码不能为空")
    private List<String> phones;

    @Schema(description = "短信内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "您的验证码是：123456")
    @NotEmpty(message = "短信内容不能为空")
    @Size(max = 1000, message = "短信内容长度不能超过1000个字符")
    private String smsContent;

    @Schema(description = "发送时间", example = "20250101120000")
    private String sendtime;

    @Schema(description = "扩展号", example = "01")
    @Size(max = 12, message = "扩展号长度最大12位")
    private String sendtermid;

    @Schema(description = "客户任务id", example = "TASK20250101001")
    @Size(max = 70, message = "客户任务id最大支持70位")
    private String customTaskid;
}