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

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Schema(description = "RPC 服务 - Msg 短信 Request DTO")
@Data
public class SmsReqDTO {

    @Schema(description = "手机号",example="")
    @NotBlank(message="手机号不能为空")
    private List<String> mobile;

    @Schema(description = "模板Id",example="")
    @NotBlank(message="模板Id")
    private String smsTemplateId;

    @Schema(description = "发送内容",example="[“param1”,“param2”]")
    @JsonProperty("smsContent")
    private String smsContent;

}
