package com.cf.imes.module.system.controller.admin.sms.vo.template;

import com.cf.imes.framework.common.validation.Mobile;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.util.Map;

@Schema(description = "管理后台 - 短信模板的发送 Request VO")
@Data
public class SmsTemplateSendReqVO {

    @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15601691300")
    @NotNull(message = "手机号不能为空")
    @Mobile
    @Size(max = 11, message = "手机号长度不能超过11个字符")
    private String mobile;

    @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "test_01")
    @NotNull(message = "模板编码不能为空")
    @Size(max = 64, message = "模板编码长度不能超过64个字符")
    private String templateCode;

    @Schema(description = "模板参数")
    @Size(max = 10, message = "模板参数数量不能超过10个")
    private Map<String, Object> templateParams;

}
